New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
constify ShaderReflection::Get*() methods #4
Comments
Looks like FindType() may also be a candidate for const'ing. |
Please ignore; I was on the wrong branch. |
Same question re: the return values from spvReflectGet*() in the non-opaque branch. Is there a reason they don't return "const SpvReflectFoo*" instead of "SpvReflectFoo*"? |
There is a yet to be implemented part of the API that lets you modify set#, binding#, and location#. Left as non-const to allow for this. |
This should all be sorted out since that part of the API is implemented. Const has been applied to the appropriate places. |
GetDescriptor(), GetDescriptorSet(), GetInputVariable(), and GetOutputVariable() aren't tagged as const. Any reason they couldn't be? Also, why do they return "Foo* const" instead of "const Foo*"?
The text was updated successfully, but these errors were encountered: