SPIRV-Cross/shaders-hlsl/frag/swizzle-scalar.frag
Hans-Kristian Arntzen 4590c63b40 Fix swizzling of integers.
Add scalar swizzling to constant composites as well.
2018-01-04 13:16:56 +01:00

17 lines
355 B
GLSL

#version 450
layout(location = 0) flat in float vFloat;
layout(location = 1) flat in int vInt;
layout(location = 0) out vec4 Float;
layout(location = 1) out ivec4 Int;
layout(location = 2) out vec4 Float2;
layout(location = 3) out ivec4 Int2;
void main()
{
Float = vec4(vFloat) * 2.0;
Int = ivec4(vInt) * 2;
Float2 = vec4(10.0);
Int2 = ivec4(10);
}