yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
d4a7a8e7
main
1#version 430 2 3uniform samplerBuffer sb ; 4uniform sampler2DRect sr ; 5uniform sampler2D s2D ; 6uniform sampler3D s3D ; 7uniform samplerCube sCube ; 8uniform samplerCubeShadow sCubeShadow ; 9uniform sampler2DShadow s2DShadow ; 10uniform sampler2DArray s2DArray ; 11uniform sampler2DArrayShadow s2DArrayShadow ; 12 13uniform isampler2D is2D ; 14uniform isampler3D is3D ; 15uniform isamplerCube isCube ; 16uniform isampler2DArray is2DArray ; 17uniform isampler2DMS is2Dms ; 18 19uniform usampler2D us2D ; 20uniform usampler3D us3D ; 21uniform usamplerCube usCube ; 22uniform usampler2DArray us2DArray ; 23 24in float c1D ; 25in vec2 c2D ; 26in vec3 c3D ; 27in vec4 c4D ; 28 29flat in int ic1D ; 30flat in ivec2 ic2D ; 31flat in ivec3 ic3D ; 32flat in ivec4 ic4D ; 33 34out vec4 FragData ; 35 36void main () 37{ 38vec4 v = texture (s2D ,c2D ); 39v += textureProj (s3D ,c4D ); 40v += textureLod (s2DArray ,c3D ,1.2 ); 41v .y += textureOffset (s2DShadow ,c3D ,ivec2 (3 ),c1D ); 42v += texelFetch (s3D ,ic3D ,ic1D ); 43v += texelFetchOffset (s2D ,ic2D ,4 ,ivec2 (3 )); 44v += texelFetchOffset (sr ,ic2D ,ivec2 (4 )); 45v .y += textureLodOffset (s2DShadow ,c3D ,c1D ,ivec2 (3 )); 46v += textureProjLodOffset (s2D ,c3D ,c1D ,ivec2 (3 )); 47v += textureGrad (sCube ,c3D ,c3D ,c3D ); 48v .x += textureGradOffset (s2DArrayShadow ,c4D ,c2D ,c2D ,ivec2 (3 )); 49v += textureProjGrad (s3D ,c4D ,c3D ,c3D ); 50v += textureProjGradOffset (s2D ,c3D ,c2D ,c2D ,ivec2 (3 )); 51 52ivec4 iv = texture (is2D ,c2D ); 53v += vec4 (iv ); 54iv = textureProjOffset (is2D ,c4D ,ivec2 (3 )); 55v += vec4 (iv ); 56iv = textureProjLod (is2D ,c3D ,c1D ); 57v += vec4 (iv ); 58iv = textureProjGrad (is2D ,c3D ,c2D ,c2D ); 59v += vec4 (iv ); 60iv = texture (is3D ,c3D ,4.2 ); 61v += vec4 (iv ); 62iv = textureLod (isCube ,c3D ,c1D ); 63v += vec4 (iv ); 64iv = texelFetch (is2DArray ,ic3D ,ic1D ); 65v += vec4 (iv ); 66iv += texelFetch (is2Dms ,ic2D ,ic1D ); 67v += vec4 (iv ); 68v += texelFetch (sb ,ic1D ); 69v += texelFetch (sr ,ic2D ); 70 71ivec2 iv2 = textureSize (sCubeShadow ,2 ); 72// iv2 += textureSize(is2Dms); 73 74FragData = v + vec4 (iv2 ,0.0 ,0.0 ); 75}