yum-mirror/slang

Making it easier to work with shaders

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

Yong HeFix scalar swizzle write. (#2801)3b4a50d74

master
380 B13 linesraw
1//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
2
3//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
4RWStructuredBuffer<float> outputBuffer;
5
6
7[numthreads(4, 1, 1)]
8void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID)
9{
10    float v = 0.0;
11    v.x = float(dispatchThreadID.x);
12    outputBuffer[dispatchThreadID.x] = v.x;
13}