Resolve issue #700: allow initializers on struct members.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
hlsl.init.frag
|
||||
WARNING: 0:40: 'typedef' : struct-member initializers ignored
|
||||
WARNING: 0:40: 'typedef' : struct-member initializers ignored
|
||||
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
@@ -152,6 +155,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'single2' (global structure{temp 2-component vector of uint v})
|
||||
0:? 'single3' (global structure{temp structure{temp int f} s1})
|
||||
0:? 'single4' (global structure{temp structure{temp 2-component vector of uint v} s1})
|
||||
0:? 'anon@0' (layout(row_major std140 ) uniform block{layout(row_major std140 ) uniform float a, layout(row_major std140 ) uniform float b, layout(row_major std140 ) uniform float c})
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -310,10 +314,11 @@ gl_FragCoord origin is upper left
|
||||
0:? 'single2' (global structure{temp 2-component vector of uint v})
|
||||
0:? 'single3' (global structure{temp structure{temp int f} s1})
|
||||
0:? 'single4' (global structure{temp structure{temp 2-component vector of uint v} s1})
|
||||
0:? 'anon@0' (layout(row_major std140 ) uniform block{layout(row_major std140 ) uniform float a, layout(row_major std140 ) uniform float b, layout(row_major std140 ) uniform float c})
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 97
|
||||
// Id's are bound by 100
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -361,8 +366,18 @@ gl_FragCoord origin is upper left
|
||||
Name 90 "input"
|
||||
Name 95 "c4"
|
||||
Name 96 "b5"
|
||||
Name 97 "Constants"
|
||||
MemberName 97(Constants) 0 "a"
|
||||
MemberName 97(Constants) 1 "b"
|
||||
MemberName 97(Constants) 2 "c"
|
||||
Name 99 ""
|
||||
Decorate 88(@entryPointOutput) Location 0
|
||||
Decorate 90(input) Location 0
|
||||
MemberDecorate 97(Constants) 0 Offset 0
|
||||
MemberDecorate 97(Constants) 1 Offset 4
|
||||
MemberDecorate 97(Constants) 2 Offset 8
|
||||
Decorate 97(Constants) Block
|
||||
Decorate 99 DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -437,6 +452,9 @@ gl_FragCoord origin is upper left
|
||||
90(input): 89(ptr) Variable Input
|
||||
95(c4): 22(ptr) Variable Private
|
||||
96(b5): 22(ptr) Variable Private
|
||||
97(Constants): TypeStruct 6(float) 6(float) 6(float)
|
||||
98: TypePointer Uniform 97(Constants)
|
||||
99: 98(ptr) Variable Uniform
|
||||
4(ShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
62(a2): 61(ptr) Variable Function
|
||||
|
||||
Reference in New Issue
Block a user