yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ebe8ddefc
master
1#version 450 2#extension GL_EXT_samplerless_texture_functions : require 3layout (row_major )uniform ; 4layout (row_major )buffer ; 5 6struct SLANG_ParameterGroup_C_0 7{ 8ivec2 pos_0 ; 9}; 10 11layout (binding = 2 ) 12layout (std140 ) 13uniform _S1 14{ 15ivec2 pos_0 ; 16}C_0 ; 17 18layout (binding = 0 ) 19uniform texture2D inputTexture_0 ; 20 21layout (rg32f ) 22layout (binding = 1 ) 23uniform image2D outputTexture_0 ; 24 25layout (local_size_x = 16 ,local_size_y = 16 ,local_size_z = 1 )in ; 26void main () 27{ 28ivec3 _S2 = ivec3 (C_0 .pos_0 ,0 ); 29imageStore ((outputTexture_0 ),ivec2 ((uvec2 (C_0 .pos_0 ))),vec4 ((texelFetch ((inputTexture_0 ), ((_S2 )).xy , ((_S2 )).z ).xy ),float (0 ),float (0 ))); 30return ; 31}