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
but, Slang Document says
Constant buffers (sometimes also called “uniform buffers”) are typically used to pass immutable parameter data from a host application to GPU code. The constant buffer type ConstantBuffer includes an explicit element type. Unlike formatted or flat buffers, a constant buffer conceptually contains only a single value of its element type, rather than one or more values.
So, it looks, Slang does not support array of ConstantBuffers
Is it correct?
However, when I tested descriptor_indexing example of Sascha Willem's tutorial with ConstantBuffer arrays, it looks working all right
I declared
ConstantBuffer<Matrices> matrices[2];
there is no problem in making modified descriptor_indexing example run all right (where only matrices[0] is used)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello, GLSL supports array of uniform buffers
but, Slang Document says
Constant buffers (sometimes also called “uniform buffers”) are typically used to pass immutable parameter data from a host application to GPU code. The constant buffer type ConstantBuffer includes an explicit element type. Unlike formatted or flat buffers, a constant buffer conceptually contains only a single value of its element type, rather than one or more values.
So, it looks, Slang does not support array of ConstantBuffers
Is it correct?
However, when I tested descriptor_indexing example of Sascha Willem's tutorial with ConstantBuffer arrays, it looks working all right
I declared
ConstantBuffer<Matrices> matrices[2];
there is no problem in making modified descriptor_indexing example run all right (where only matrices[0] is used)
Thank you
All reactions