Fix #790: Don't emit NV-specific interface members unless enabled by extension.
This commit is contained in:
parent
93750bc0a4
commit
0e7378446b
10 changed files with 216 additions and 59 deletions
54
Test/baseResults/spv.450.geom.out
Executable file
54
Test/baseResults/spv.450.geom.out
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
spv.450.geom
|
||||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 24
|
||||
|
||||
Capability Geometry
|
||||
Capability GeometryPointSize
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Geometry 4 "main" 14 23
|
||||
ExecutionMode 4 Triangles
|
||||
ExecutionMode 4 Invocations 4
|
||||
ExecutionMode 4 OutputLineStrip
|
||||
ExecutionMode 4 OutputVertices 127
|
||||
Source GLSL 450
|
||||
Name 4 "main"
|
||||
Name 8 "p"
|
||||
Name 9 "gl_PerVertex"
|
||||
MemberName 9(gl_PerVertex) 0 "gl_PointSize"
|
||||
Name 14 "gl_in"
|
||||
Name 21 "gl_PerVertex"
|
||||
MemberName 21(gl_PerVertex) 0 "gl_PointSize"
|
||||
Name 23 ""
|
||||
MemberDecorate 9(gl_PerVertex) 0 BuiltIn PointSize
|
||||
Decorate 9(gl_PerVertex) Block
|
||||
MemberDecorate 21(gl_PerVertex) 0 BuiltIn PointSize
|
||||
Decorate 21(gl_PerVertex) Block
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypePointer Function 6(float)
|
||||
9(gl_PerVertex): TypeStruct 6(float)
|
||||
10: TypeInt 32 0
|
||||
11: 10(int) Constant 3
|
||||
12: TypeArray 9(gl_PerVertex) 11
|
||||
13: TypePointer Input 12
|
||||
14(gl_in): 13(ptr) Variable Input
|
||||
15: TypeInt 32 1
|
||||
16: 15(int) Constant 1
|
||||
17: 15(int) Constant 0
|
||||
18: TypePointer Input 6(float)
|
||||
21(gl_PerVertex): TypeStruct 6(float)
|
||||
22: TypePointer Output 21(gl_PerVertex)
|
||||
23: 22(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(p): 7(ptr) Variable Function
|
||||
19: 18(ptr) AccessChain 14(gl_in) 16 17
|
||||
20: 6(float) Load 19
|
||||
Store 8(p) 20
|
||||
Return
|
||||
FunctionEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue