yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
c3bc49624
master
1// uav-write.slang 2//TEST:SIMPLE: 3 4// Just confirming that code that writes to a UAV will type-check. 5 6RWTexture2D<float4> gOutput; 7 8float4 test(uint2 coord, float4 value) 9{ 10 // read 11 value = value + gOutput[coord]; 12 13 // write 14 gOutput[coord] = value; 15 16 // read-modify-write 17 gOutput[coord] += value; 18 19 return value; 20}