Fix #2178: Allow specialization constants for texel offsets.

This commit is contained in:
John Kessenich 2020-04-12 22:56:17 -06:00
parent fd593d5f08
commit 4657244018
4 changed files with 60 additions and 4 deletions

10
Test/spv.specTexture.frag Normal file
View file

@ -0,0 +1,10 @@
#version 450
layout(constant_id = 1) const int offs = 0;
layout(binding = 0) uniform sampler2D tex;
layout(location = 0) out vec4 color_out;
void main(void)
{
color_out = textureLodOffset(tex, vec2(0.0, 0.0), 0.0, ivec2(offs, offs));
}