shader-slang / slang

Making it easier to work with shaders
MIT License
1.81k stars 161 forks source link

Add support for RWStructuredBuffer with 64bit index #4274

Closed aroidzap closed 1 month ago

aroidzap commented 1 month ago

For the CUDA and CPP targets, the prelude-part is ok (uses size_t), but it is limited by slang having int/uint index only, see: https://github.com/shader-slang/slang/blob/master/source/slang/hlsl.meta.slang#L4908 https://github.com/shader-slang/slang/blob/master/source/slang/hlsl.meta.slang#L4914

bmillsNV commented 1 month ago

@jkwak-work can you take this one? Also need to include a test case so we don't hit issues like this again.

jkwak-work commented 1 month ago

Yes, I will work on it