google / google/amber

[vulkan] Use runtime switch to select lambda vs function pointer

Open
#330 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
228
Forks
77
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.