amber
amber copied to clipboard
[vulkan] Use runtime switch to select lambda vs function pointer
With #328 we generate either the function pointers or lambdas at build time for the vulkan calls. Since we want to add a run-time flag anyway to enable/disable the logging information we can have that runtime flag switch between using the function pointer and lambda versions. This means that it's zero cost if we don't do the logging.