SPIRV-Cross/shaders-msl/comp/force-recompile-hooks.swizzle.comp

10 lines
192 B
Plaintext
Raw Normal View History

#version 450
layout(binding = 0) uniform sampler2D foo;
layout(binding = 1, rgba8) uniform image2D bar;
void main() {
vec4 a = texture(foo, vec2(1, 1));
imageStore(bar, ivec2(0, 0), a);
}