yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
bd6dbaf7c
master
1// comma-operator.slang.glsl 2#version 450 3 4//TEST_IGNORE_FILE: 5 6layout (std430 ,binding = 0 )buffer StructuredBuffer_int_t_0 { 7int _data []; 8}outputBuffer_0 ; 9 10int test_0 (int inVal_0 ) 11{ 12return inVal_0 * 2 + 1 ; 13} 14 15layout (local_size_x = 4 ,local_size_y = 1 ,local_size_z = 1 )in ; 16void main () 17{ 18uint tid_0 = gl_GlobalInvocationID .x ; 19outputBuffer_0 ._data [tid_0 ]= test_0 (outputBuffer_0 ._data [tid_0 ]); 20return ; 21}