https://github.com/shader-slang/slang
Raw File
Tip revision: e698b4ae92b996ac54d023c831170a5467b2d1a0 authored by Sai Praveen Bangaru on 28 September 2023, 05:45:09 UTC
Remove `[NoSideEffect]` from `DiffTensorView.store()` (#3247)
Tip revision: e698b4a
comma-operator.slang.glsl
// comma-operator.slang.glsl
#version 450

//TEST_IGNORE_FILE:

layout(std430, binding = 0) buffer StructuredBuffer_int_t_0 {
    int _data[];
} outputBuffer_0;

int test_0(int inVal_0)
{
    return inVal_0 * 2 + 1;
}

layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in;
void main()
{
    uint tid_0 = gl_GlobalInvocationID.x;
    outputBuffer_0._data[tid_0] = test_0(outputBuffer_0._data[tid_0]);
    return;
}
back to top