yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
ec35febb7
master
1//TEST:SIMPLE(filecheck=CHECK):-target spirv-asm -entry main -stage vertex -allow-glsl 2 3// CHECK: OpDecorate %{{.*}} Flat 4 5#version 450 6layout(set = 1, binding = 0) uniform highp isampler1D texSampler[8]; 7 8layout(location = 0) in highp vec4 a_position; 9layout(location = 1) in highp float a_coords; 10layout(location = 0) flat out highp ivec4 vtx_out_result0; 11layout(location = 1) flat out highp ivec4 vtx_out_result1; 12layout(location = 2) flat out highp ivec4 vtx_out_result2; 13layout(location = 3) flat out highp ivec4 vtx_out_result3; 14 15void main (void) 16{ 17 gl_Position = a_position; 18 gl_PointSize = 1.0; 19 highp float coords = a_coords; 20 highp ivec4 result0; 21 highp ivec4 result1; 22 highp ivec4 result2; 23 highp ivec4 result3; 24 result0 = textureLod(texSampler[3], coords, 0.0); 25 result1 = textureLod(texSampler[2], coords, 0.0); 26 result2 = textureLod(texSampler[7], coords, 0.0); 27 result3 = textureLod(texSampler[2], coords, 0.0); 28 vtx_out_result0 = result0; 29 vtx_out_result1 = result1; 30 vtx_out_result2 = result2; 31 vtx_out_result3 = result3; 32}