yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2398b3a4
main
1#version 430 core 2 3uniform sampler1D samp1D ; 4uniform isampler2D isamp2D ; 5uniform usampler2D usamp2D ; 6uniform isampler3D isamp3D ; 7uniform usampler3D usamp3D ; 8uniform samplerCube sampCube ; 9uniform isamplerCube isampCube ; 10uniform isampler1DArray isamp1DA ; 11uniform sampler2DArray samp2DA ; 12uniform usampler2DArray usamp2DA ; 13uniform isamplerCubeArray isampCubeA ; 14uniform usamplerCubeArray usampCubeA ; 15 16uniform sampler1DShadow samp1Ds ; 17uniform sampler2DShadow samp2Ds ; 18uniform samplerCubeShadow sampCubes ; 19uniform sampler1DArrayShadow samp1DAs ; 20uniform sampler2DArrayShadow samp2DAs ; 21uniform samplerCubeArrayShadow sampCubeAs ; 22 23uniform samplerBuffer sampBuf ; 24uniform sampler2DRect sampRect ; 25 26void main () 27{ 28vec2 lod ; 29float pf ; 30vec2 pf2 ; 31vec3 pf3 ; 32 33lod = textureQueryLod (samp1D ,pf ); 34lod += textureQueryLod (isamp2D ,pf2 ); 35lod += textureQueryLod (usamp3D ,pf3 ); 36lod += textureQueryLod (sampCube ,pf3 ); 37lod += textureQueryLod (isamp1DA ,pf ); 38lod += textureQueryLod (usamp2DA ,pf2 ); 39lod += textureQueryLod (isampCubeA ,pf3 ); 40 41lod += textureQueryLod (samp1Ds ,pf ); 42lod += textureQueryLod (samp2Ds ,pf2 ); 43lod += textureQueryLod (sampCubes ,pf3 ); 44lod += textureQueryLod (samp1DAs ,pf ); 45lod += textureQueryLod (samp2DAs ,pf2 ); 46lod += textureQueryLod (sampCubeAs ,pf3 ); 47 48int levels ; 49 50levels = textureQueryLevels (samp1D ); 51levels += textureQueryLevels (usamp2D ); 52levels += textureQueryLevels (isamp3D ); 53levels += textureQueryLevels (isampCube ); 54levels += textureQueryLevels (isamp1DA ); 55levels += textureQueryLevels (samp2DA ); 56levels += textureQueryLevels (usampCubeA ); 57 58levels = textureQueryLevels (samp1Ds ); 59levels += textureQueryLevels (samp2Ds ); 60levels += textureQueryLevels (sampCubes ); 61levels += textureQueryLevels (samp1DAs ); 62levels += textureQueryLevels (samp2DAs ); 63levels += textureQueryLevels (sampCubeAs ); 64}