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
I am trying to retrieve information from the reflection interface for push constants declared in the program. Reflection interface however reports the parameters as uniform - I am looping over function parameters, and category is always UNIFORM, here is the API I am using:
voidSlangModuleCompiler::emitParameter(slang::VariableLayoutReflection* var)
{
auto variable = var->getVariable();
auto typeLayout = var->getTypeLayout();
auto categoryCount = var->getCategoryCount();
if (categoryCount)
{
for (uint32_t cc = 0; cc < categoryCount; ++cc)
{
auto category = SlangParameterCategory(var->getCategoryByIndex(cc));
I even tried to use the flat API that I see being used in vk-shader-object-layout.cpp, but I always see binding range count as 0.
Thanks in advance for any help !
The text was updated successfully, but these errors were encountered:
For now I am assuming that uniform declaration in a function parameter category has to be assumed to be push constant, as they are emitted as push constant depending upon type layout. Please correct me if this assumption is incorrect.
Hi,
I am trying to retrieve information from the reflection interface for push constants declared in the program. Reflection interface however reports the parameters as uniform - I am looping over function parameters, and category is always UNIFORM, here is the API I am using:
Here is the shader for example - Shader
I even tried to use the flat API that I see being used in
vk-shader-object-layout.cpp
, but I always see binding range count as 0.Thanks in advance for any help !
The text was updated successfully, but these errors were encountered: