Reflection API
#4252
Replies: 2 comments
-
You can see part of my code here! I modified it a bit since last time but nothing fancy. #3318 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Duplicate of #4259 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I don't know if it's the right place to ask questions but I will post it here and if it is not appropriate, I can move the discussion elsewhere.
I am using slang reflection API to feed my engine but I have some troubles.
For some UTs, I have this shader in slang:
This is just for unit testing so don't look at the stuff in main.
That will compil into this : (with latest branch 2024.1.18
What I am trying to achieve is to get the correct binding and set for Vulkan for each variable. This shader is basded on an old comment I found in your repo when you were still using childSet in SimpleBindingOffset.
I am using this to compute the relative binding and set of variable
And I am adding recursively the offset with the parent. THe thing is that I get binding = 1 and set = 2 for gThings. But the gThings.t is in set 0 as the GLSL is showing (and binding 1). How am I supposed to get the right result ?
I read the documentation but I still have trouble understanding everything.
Thanks,
Baptiste
Beta Was this translation helpful? Give feedback.
All reactions