mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-30 22:51:06 +00:00
8c8505c604
Apply the interpolation first, then apply the swizzle to the result, the inverse of the order requested by the AST. This fixes issue #411.
17 lines
429 B
GLSL
17 lines
429 B
GLSL
#version 450
|
|
|
|
in vec4 in4;
|
|
in vec3 in3;
|
|
|
|
void main()
|
|
{
|
|
vec3 v43 = interpolateAtCentroid(in4.wzx);
|
|
vec2 v42 = interpolateAtSample(in4.zx, 1);
|
|
vec4 v44 = interpolateAtOffset(in4.zyxw, vec2(2.0));
|
|
float v41 = interpolateAtOffset(in4.y, vec2(2.0));
|
|
|
|
vec3 v33 = interpolateAtCentroid(in3.yzx);
|
|
vec2 v32 = interpolateAtSample(in3.zx, 1);
|
|
float v31 = interpolateAtOffset(in4.y, vec2(2.0));
|
|
}
|