yum-mirror/slang

Making it easier to work with shaders

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

Mukund KeshavaEnable tests for CUDA (#7593)141eac9eb

master
347 B11 linesraw
1//TEST(compute):COMPARE_COMPUTE:-cpu -output-using-type
2//TEST(compute):COMPARE_COMPUTE:-cuda -output-using-type
3
4//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
5RWStructuredBuffer<int> outputBuffer;
6
7[numthreads(4, 1, 1)]
8void computeMain(in uint i : SV_GroupIndex)
9{
10    outputBuffer[i] = int(step(1.5, double(i)) * 100);
11}