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
While it technically says it, it was very confusing to me that the first_slot parameter isn't a global slot index (like the t-register in hlsl), but instead is a local buffer slot index.
While it technically says it, it was very confusing to me that the first_slot parameter isn't a global slot index (like the t-register in hlsl), but instead is a local buffer slot index.
So in this example:
Texture2D texture0 : register(t0, space0);
Texture2D texture1 : register(t1, space0);
StructuredBuffer buffer0 : register(t2, space0);
to bind buffer0, you'd need to call SDL_BindGPUComputeStorageBuffers with first_slot set to 0. I expected to need to set it using first_slot 2.
I wish the documentation had a few more hints or examples to this effect, as it took me quite a while to figure out.
The text was updated successfully, but these errors were encountered: