yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
69cb6e8f3
master
1// cuda-reflection.slang 2 3//TEST:REFLECTION:-stage compute -entry main -target cuda -no-codegen 4 5struct PadLadenStruct 6{ 7 double a; 8 uint8_t b; 9}; 10 11// This is to check if the last half can be inserted 'inside' the spare padding of a. It should not be 12struct StructWithArray 13{ 14 PadLadenStruct a[1]; 15 uint8_t c; 16 17 matrix<half, 3, 3> d; 18 uint8_t e; 19}; 20 21ConstantBuffer<StructWithArray> cb; 22RWStructuredBuffer<StructWithArray> sb; 23 24[numthreads(1, 1, 1)] 25void main( 26 uint3 dispatchThreadID : SV_DispatchThreadID) 27{ 28}