yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
9e3f544d
main
1#version 460 2#extension GL_QCOM_image_processing3 : enable 3 4precision mediump float ; 5precision highp usampler2D ; 6precision highp sampler2D ; 7precision highp isampler2DArray ; 8 9layout (location = 0 ) in vec2 c2D; 10layout (location = 1 ) in vec3 c3D; 11layout (location = 2 ) in ivec2 offset; 12 13layout (binding = 0 ) uniform usampler2D usamp2d; 14layout (binding = 1 ) uniform isampler2D isamp2d; 15layout (binding = 2 ) uniform sampler2D fsamp2d; 16 17layout (binding = 3 ) uniform usampler2DArray usamp2da; 18layout (binding = 4 ) uniform isampler2DArray isamp2da; 19layout (binding = 5 ) uniform sampler2DArray fsamp2da; 20 21void main() 22{ 23vec4 sum = vec4( 0.0f ); 24 25sum += textureGather4x1QCOM(usamp2d, c2D); 26sum += textureGather4x1QCOM(usamp2d, c2D, 0 ); 27sum += textureGather4x1QCOM(isamp2d, c2D); 28sum += textureGather4x1QCOM(isamp2d, c2D, 1 ); 29sum += textureGather4x1QCOM(fsamp2d, c2D); 30sum += textureGather4x1QCOM(fsamp2d, c2D, 2 ); 31 32sum += textureGatherV2QCOM(usamp2d, c2D); 33sum += textureGatherV2QCOM(usamp2d, c2D, 1 ); 34sum += textureGatherV2QCOM(isamp2d, c2D); 35sum += textureGatherV2QCOM(isamp2d, c2D, 2 ); 36sum += textureGatherV2QCOM(fsamp2d, c2D); 37sum += textureGatherV2QCOM(fsamp2d, c2D, 3 ); 38 39sum += textureGatherH2QCOM(usamp2d, c2D); 40sum += textureGatherH2QCOM(usamp2d, c2D, 0 ); 41sum += textureGatherH2QCOM(isamp2d, c2D); 42sum += textureGatherH2QCOM(isamp2d, c2D, 1 ); 43sum += textureGatherH2QCOM(fsamp2d, c2D); 44sum += textureGatherH2QCOM(fsamp2d, c2D, 2 ); 45 46sum += textureGatherDQCOM(usamp2d, c2D); 47sum += textureGatherDQCOM(usamp2d, c2D, 1 ); 48sum += textureGatherDQCOM(isamp2d, c2D); 49sum += textureGatherDQCOM(isamp2d, c2D, 2 ); 50sum += textureGatherDQCOM(fsamp2d, c2D); 51sum += textureGatherDQCOM(fsamp2d, c2D, 3 ); 52 53sum += textureGather4x1QCOM(usamp2da, c3D); 54sum += textureGather4x1QCOM(isamp2da, c3D); 55sum += textureGather4x1QCOM(fsamp2da, c3D); 56 57sum += textureGatherV2QCOM(usamp2da, c3D); 58sum += textureGatherV2QCOM(isamp2da, c3D); 59sum += textureGatherV2QCOM(fsamp2da, c3D); 60 61sum += textureGatherH2QCOM(usamp2da, c3D); 62sum += textureGatherH2QCOM(isamp2da, c3D); 63sum += textureGatherH2QCOM(fsamp2da, c3D); 64 65sum += textureGatherDQCOM(usamp2da, c3D); 66sum += textureGatherDQCOM(isamp2da, c3D); 67sum += textureGatherDQCOM(fsamp2da, c3D); 68 69// textureGather*OffsetQCOM 70sum += textureGather4x1OffsetQCOM(usamp2d, c2D, offset); 71sum += textureGather4x1OffsetQCOM(usamp2d, c2D, offset, 0 ); 72sum += textureGather4x1OffsetQCOM(isamp2d, c2D, offset); 73sum += textureGather4x1OffsetQCOM(isamp2d, c2D, offset, 1 ); 74sum += textureGather4x1OffsetQCOM(fsamp2d, c2D, offset); 75sum += textureGather4x1OffsetQCOM(fsamp2d, c2D, offset, 2 ); 76 77sum += textureGatherV2OffsetQCOM(usamp2d, c2D, offset); 78sum += textureGatherV2OffsetQCOM(usamp2d, c2D, offset, 1 ); 79sum += textureGatherV2OffsetQCOM(isamp2d, c2D, offset); 80sum += textureGatherV2OffsetQCOM(isamp2d, c2D, offset, 2 ); 81sum += textureGatherV2OffsetQCOM(fsamp2d, c2D, offset); 82sum += textureGatherV2OffsetQCOM(fsamp2d, c2D, offset, 3 ); 83 84sum += textureGatherH2OffsetQCOM(usamp2d, c2D, offset); 85sum += textureGatherH2OffsetQCOM(usamp2d, c2D, offset, 0 ); 86sum += textureGatherH2OffsetQCOM(isamp2d, c2D, offset); 87sum += textureGatherH2OffsetQCOM(isamp2d, c2D, offset, 1 ); 88sum += textureGatherH2OffsetQCOM(fsamp2d, c2D, offset); 89sum += textureGatherH2OffsetQCOM(fsamp2d, c2D, offset, 2 ); 90 91sum += textureGatherDOffsetQCOM(usamp2d, c2D, offset); 92sum += textureGatherDOffsetQCOM(usamp2d, c2D, offset, 1 ); 93sum += textureGatherDOffsetQCOM(isamp2d, c2D, offset); 94sum += textureGatherDOffsetQCOM(isamp2d, c2D, offset, 2 ); 95sum += textureGatherDOffsetQCOM(fsamp2d, c2D, offset); 96sum += textureGatherDOffsetQCOM(fsamp2d, c2D, offset, 3 ); 97 98sum += textureGather4x1OffsetQCOM(usamp2da, c3D, offset); 99sum += textureGather4x1OffsetQCOM(isamp2da, c3D, offset); 100sum += textureGather4x1OffsetQCOM(fsamp2da, c3D, offset); 101 102sum += textureGatherV2OffsetQCOM(usamp2da, c3D, offset); 103sum += textureGatherV2OffsetQCOM(isamp2da, c3D, offset); 104sum += textureGatherV2OffsetQCOM(fsamp2da, c3D, offset); 105 106sum += textureGatherH2OffsetQCOM(usamp2da, c3D, offset); 107sum += textureGatherH2OffsetQCOM(isamp2da, c3D, offset); 108sum += textureGatherH2OffsetQCOM(fsamp2da, c3D, offset); 109 110sum += textureGatherDOffsetQCOM(usamp2da, c3D, offset); 111sum += textureGatherDOffsetQCOM(isamp2da, c3D, offset); 112sum += textureGatherDOffsetQCOM(fsamp2da, c3D, offset); 113 114gl_Position = sum ; 115}