SPV: Add recursive distrubition of 'location' across structure members.

This commit is contained in:
John Kessenich
2016-01-21 18:56:57 -07:00
parent 7a53f76d38
commit 7b9fa25bad
3 changed files with 55 additions and 14 deletions

View File

@@ -30,3 +30,7 @@ layout(binding = 7) uniform anonblock { int aoeu; } ;
layout(binding = 4) uniform sampler2D sampb1;
layout(binding = 5) uniform sampler2D sampb2[10];
layout(binding = 31) uniform sampler2D sampb4;
struct S { mediump float a; highp uvec2 b; highp vec3 c; };
struct SS { vec4 b; S s; vec4 c; };
layout(location = 0) flat out SS var;