diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.1.4.texture.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/spv.1.4.texture.frag | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.1.4.texture.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.1.4.texture.frag new file mode 100644 index 00000000000..211dfbca12d --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.1.4.texture.frag @@ -0,0 +1,26 @@ +#version 450 + +uniform sampler2D texSampler2D; +uniform isampler2D itexSampler2D; +uniform usampler2D utexSampler2D; + +in vec2 t; +in vec2 coords2D; +flat in ivec2 iCoords2D; + +out vec4 color; + +flat in int iLod; + +void main() +{ + vec4 color = vec4(0.0, 0.0, 0.0, 0.0); + + color += texture( texSampler2D, coords2D); + color += texture(itexSampler2D, coords2D); + color += texture(utexSampler2D, coords2D); + + color += texelFetch( texSampler2D, iCoords2D, iLod); + color += texelFetch(itexSampler2D, iCoords2D, iLod); + color += texelFetch(utexSampler2D, iCoords2D, iLod); +}
\ No newline at end of file |