yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

ArielG-NVDo not zero-initialize groupshared and rayquery variables (#4838)45b76418f

master
393 B14 linesraw
1//TEST:SIMPLE(filecheck=HLSL): -target hlsl -stage compute -entry computeMain
2//TEST:SIMPLE(filecheck=GLSL): -target glsl -stage compute -entry computeMain
3
4RWStructuredBuffer<uint> outputBuffer;
5
6// GLSL: error 30623
7// HLSL: error 30623
8groupshared uint globalMem = 1;
9
10[numthreads(1, 1, 1)]
11void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
12{
13    outputBuffer[0] = globalMem ;
14}