yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
54264f91
vulkan-sdk-1.4.363.0
1#version 450 core 2#extension GL_EXT_texture_offset_non_const : enable 3layout ( location = 0 ) in highp vec4 a_position ; 4layout ( location = 4 ) in highp vec2 a_in0 ; 5layout ( location = 5 ) in highp float a_in1 ; 6layout ( location = 10 ) in highp ivec2 offsetValue ; 7layout ( location = 0 ) out mediump vec4 v_color0 ; 8layout ( location = 1 ) out mediump vec4 v_color1 ; 9layout ( location = 2 ) out mediump vec4 v_color2 ; 10layout ( location = 3 ) out mediump vec4 v_color3 ; 11layout ( location = 4 ) out mediump vec4 v_color4 ; 12layout ( location = 5 ) out mediump vec4 v_color5 ; 13layout ( location = 6 ) out mediump vec4 v_color6 ; 14layout ( set = 0 , binding = 0 ) uniform highp sampler2D u_sampler ; 15layout ( set = 0 , binding = 1 ) uniform buf0 { highp vec4 u_scale ; } ; 16layout ( set = 0 , binding = 2 ) uniform buf1 { highp vec4 u_bias ; } ; 17out gl_PerVertex { 18vec4 gl_Position ; 19} ; 20 21void main () 22{ 23gl_Position = a_position ; 24v_color0 = vec4 ( textureOffset ( u_sampler , a_in0 , offsetValue )) * u_scale + u_bias ; 25v_color1 = vec4 ( texelFetchOffset ( u_sampler , ivec2 ( a_in0 ) , int ( a_in1 ) , offsetValue )) * u_scale + u_bias ; 26v_color2 = vec4 ( textureProjOffset ( u_sampler , vec3 ( a_in0 , 1.0 ) , offsetValue )) * u_scale + u_bias ; 27v_color3 = vec4 ( textureLodOffset ( u_sampler , a_in0 , a_in1 , offsetValue )) * u_scale + u_bias ; 28v_color4 = vec4 ( textureProjLodOffset ( u_sampler , vec3 ( a_in0 , 1.0 ) , a_in1 , offsetValue )) * u_scale + u_bias ; 29v_color5 = vec4 ( textureGradOffset ( u_sampler , a_in0 , vec2 ( a_in1 , a_in1 ) , vec2 ( a_in1 , a_in1 ) , offsetValue )) * u_scale + u_bias ; 30v_color6 = vec4 ( textureProjGradOffset ( u_sampler , vec3 ( a_in0 , 1.0 ) , vec2 ( a_in1 , a_in1 ) , vec2 ( a_in1 , a_in1 ) , offsetValue )) * u_scale + u_bias ; 31}