yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
a420aff8
16.3.0
1#version 450 core 2#extension GL_ARB_sparse_texture2 : enable 3#extension GL_EXT_texture_offset_non_const : enable 4layout ( location = 0 ) in highp vec4 a_position ; 5layout ( location = 4 ) in highp vec2 a_in0 ; 6layout ( location = 5 ) in highp float a_in1 ; 7layout ( location = 10 ) in highp ivec2 offsetValue ; 8layout ( location = 0 ) out mediump vec4 v_color0 ; 9layout ( location = 1 ) out mediump vec4 v_color1 ; 10layout ( location = 2 ) out mediump vec4 v_color2 ; 11layout ( location = 3 ) out mediump vec4 v_color3 ; 12layout ( set = 0 , binding = 0 ) uniform highp sampler2D u_sampler ; 13layout ( set = 0 , binding = 1 ) uniform buf0 { highp vec4 u_scale ; } ; 14layout ( set = 0 , binding = 2 ) uniform buf1 { highp vec4 u_bias ; } ; 15out gl_PerVertex { 16vec4 gl_Position ; 17} ; 18 19void main () 20{ 21gl_Position = a_position ; 22vec4 aux0 ; 23vec4 aux1 ; 24vec4 aux2 ; 25vec4 aux3 ; 26 27int ret0 = sparseTextureOffsetARB ( u_sampler , a_in0 , offsetValue , aux0 ) ; 28int ret1 = sparseTexelFetchOffsetARB ( u_sampler , ivec2 ( a_in0 ) , int ( a_in1 ) , offsetValue , aux1 ) ; 29int ret2 = sparseTextureLodOffsetARB ( u_sampler , a_in0 , a_in1 , offsetValue , aux2 ) ; 30int ret3 = sparseTextureGradOffsetARB ( u_sampler , a_in0 , vec2 ( a_in1 , a_in1 ) , vec2 ( a_in1 , a_in1 ) , offsetValue , aux3 ) ; 31 32v_color0 = aux0 * u_scale + u_bias ; 33v_color1 = aux1 * u_scale + u_bias ; 34v_color2 = aux2 * u_scale + u_bias ; 35v_color3 = aux3 * u_scale + u_bias ; 36}