https://github.com/shader-slang/slang
Raw File
Tip revision: 34acec2258ef1586564fe51126b25910b3202541 authored by Yong He on 23 March 2023, 06:59:22 UTC
Fix generic lowering regression due to IR deduplication. (#2723)
Tip revision: 34acec2
raygen.slang
// raygen.slang

//TEST(optix):COMPARE_COMPUTE_EX:-cuda -rt -output-using-type -compute-dispatch 4,1,1

//TEST_INPUT:ubuffer(data=[0 0 0 0],stride=4):name gOutput,out

RWStructuredBuffer<int> gOutput;

[shader("raygeneration")]
void raygenMain()
{
    uint3 tid = DispatchRaysIndex();

    gOutput[tid.x] = tid.x*11;
}
back to top