yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaFXC as DownstreamCompiler (#1844)d4316c884

master
290 B15 linesraw
1// gather-texture2darray.slang.hlsl
2
3//TEST_IGNORE_FILE:
4
5Texture2DArray<uint> t_0;
6SamplerState s_0;
7RWBuffer<uint4> b_0;
8
9// Attribute not understood by fxc
10//[shader("compute")]
11[numthreads(32, 1, 1)]
12void main(uint3 tid : SV_DISPATCHTHREADID)
13{
14    b_0[tid.x] = t_0.Gather(s_0, tid);
15}