yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
e45f8c1f4
master
1// raygen.slang 2 3//TEST(optix):COMPARE_COMPUTE_EX:-cuda -rt -output-using-type -compute-dispatch 4,1,1 4 5//TEST_INPUT:ubuffer(data=[0 0 0 0],stride=4):name gOutput,out 6 7RWStructuredBuffer<int> gOutput; 8 9[shader("raygeneration")] 10void raygenMain() 11{ 12 uint3 tid = DispatchRaysIndex(); 13 14 gOutput[tid.x] = tid.x*11; 15}