SPIRV-Cross/reference/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

13 lines
260 B
GLSL

#version 460
layout(binding = 0) uniform sampler2D Image0;
layout(location = 0) out vec4 outColor;
layout(location = 0) in vec2 inUv;
void main()
{
outColor = textureGatherOffsets(Image0, inUv, ivec2[](ivec2(0), ivec2(1, 0), ivec2(1), ivec2(0, 1)));
}