SPIRV-Cross/shaders-no-opt/frag/texture-gather-offsets.frag
Hans-Kristian Arntzen 1047c13d40 GLSL: Handle textureGatherOffsets properly.
We forgot to pass down the offset ID, clean up coffset vs offset jank
while we're at it.
2023-01-12 16:27:11 +01:00

15 lines
352 B
GLSL

#version 460 core
#extension GL_ARB_separate_shader_objects : enable
layout(location = 0) in vec2 inUv;
layout(location = 0) out vec4 outColor;
layout(set=0, binding=0) uniform sampler2D Image0;
void main(void)
{
const ivec2 offs[4] = {ivec2(0,0), ivec2(1,0), ivec2(1,1), ivec2(0,1)};
outColor = textureGatherOffsets(Image0, inUv, offs);
}