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'm trying to get the size of descriptor blocks.
For uniform buffers it seems to work, but for storage buffers block.size is zero.
This is caused by this bit of code in spirv_reflect.c :
Why are all storage buffers treated runtime arrays ?
(I presume that's what is_parent_rta mean)
PS:
My wider goal is to make an automated system to create C structs that exactly represent shader block variables (with correct alignment and size).
I assume that is a common goal here, so if you have pointers to similar projects I'm interested.
The text was updated successfully, but these errors were encountered:
final update - I realize the issue is HLSL/Slang don't have a concept of a "bound" storage buffer, all Storage Buffers in HLSL/Slang are always runtime arrays, so this is just a simple case of no one noticing (or no one creating an issue) that we forgot to get a proper size for things like GLSL
Have tests already, just busy with Vulkanize event this week, will hopefully have fix early next week
I'm trying to get the size of descriptor blocks.
For uniform buffers it seems to work, but for storage buffers
block.size
is zero.This is caused by this bit of code in
spirv_reflect.c
:Why are all storage buffers treated runtime arrays ?
(I presume that's what
is_parent_rta
mean)PS:
My wider goal is to make an automated system to create C structs that exactly represent shader block variables (with correct alignment and size).
I assume that is a common goal here, so if you have pointers to similar projects I'm interested.
The text was updated successfully, but these errors were encountered: