You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One possible reason for this issue is that the HLSL compiler may optimize away unused cbuffer declarations, causing the shader reflection to overlook these buffers. As a result, when calling GetStaticVariableBy..., it returns a nullptr, and invoking ->Set subsequently triggers an exception.
This is probably common knowledge for some but it might be helpful :)
I am not sure if the same is true for other variable types.
The text was updated successfully, but these errors were encountered:
One possible reason for this issue is that the HLSL compiler may optimize away unused cbuffer declarations, causing the shader reflection to overlook these buffers. As a result, when calling GetStaticVariableBy..., it returns a nullptr, and invoking ->Set subsequently triggers an exception.
This is probably common knowledge for some but it might be helpful :)
I am not sure if the same is true for other variable types.
The text was updated successfully, but these errors were encountered: