SPV: Require desktop 140 or ES 310 or above.

This commit is contained in:
John Kessenich
2016-01-22 17:47:22 -07:00
parent 4bfeed5fe8
commit f6eae2a54a
102 changed files with 357 additions and 313 deletions

View File

@@ -1,33 +1,38 @@
spv.300BuiltIns.vert
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 40
// Id's are bound by 49
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 11 23 25 33 39
Source ESSL 300
EntryPoint Vertex 4 "main" 11 24 27 48
Source ESSL 310
Name 4 "main"
Name 8 "i"
Name 11 "gl_VertexID"
Name 16 "j"
Name 23 "gl_Position"
Name 25 "ps"
Name 33 "gl_PointSize"
Name 39 "gl_InstanceID"
Name 22 "gl_PerVertex"
MemberName 22(gl_PerVertex) 0 "gl_Position"
MemberName 22(gl_PerVertex) 1 "gl_PointSize"
Name 24 ""
Name 27 "ps"
Name 48 "gl_InstanceID"
Decorate 8(i) RelaxedPrecision
Decorate 11(gl_VertexID) BuiltIn VertexId
Decorate 16(j) RelaxedPrecision
Decorate 23(gl_Position) Invariant
Decorate 23(gl_Position) BuiltIn Position
Decorate 25(ps) RelaxedPrecision
Decorate 33(gl_PointSize) BuiltIn PointSize
Decorate 39(gl_InstanceID) BuiltIn InstanceId
MemberDecorate 22(gl_PerVertex) 0 Invariant
MemberDecorate 22(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 22(gl_PerVertex) 1 BuiltIn PointSize
Decorate 22(gl_PerVertex) Block
Decorate 27(ps) RelaxedPrecision
Decorate 48(gl_InstanceID) BuiltIn InstanceId
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
@@ -38,13 +43,16 @@ Linked vertex stage:
14: 6(int) Constant 10
20: TypeFloat 32
21: TypeVector 20(float) 4
22: TypePointer Output 21(fvec4)
23(gl_Position): 22(ptr) Variable Output
24: TypePointer Input 20(float)
25(ps): 24(ptr) Variable Input
32: TypePointer Output 20(float)
33(gl_PointSize): 32(ptr) Variable Output
39(gl_InstanceID): 10(ptr) Variable Input
22(gl_PerVertex): TypeStruct 21(fvec4) 20(float)
23: TypePointer Output 22(gl_PerVertex)
24: 23(ptr) Variable Output
25: 6(int) Constant 0
26: TypePointer Input 20(float)
27(ps): 26(ptr) Variable Input
30: TypePointer Output 21(fvec4)
38: 6(int) Constant 1
40: TypePointer Output 20(float)
48(gl_InstanceID): 10(ptr) Variable Input
4(main): 2 Function None 3
5: Label
8(i): 7(ptr) Variable Function
@@ -57,20 +65,26 @@ Linked vertex stage:
18: 6(int) IMul 9 17
19: 6(int) ISub 18 14
Store 16(j) 19
26: 20(float) Load 25(ps)
27: 21(fvec4) CompositeConstruct 26 26 26 26
Store 23(gl_Position) 27
28: 6(int) Load 8(i)
29: 20(float) ConvertSToF 28
30: 21(fvec4) Load 23(gl_Position)
31: 21(fvec4) VectorTimesScalar 30 29
Store 23(gl_Position) 31
34: 20(float) Load 25(ps)
Store 33(gl_PointSize) 34
35: 6(int) Load 16(j)
36: 20(float) ConvertSToF 35
37: 20(float) Load 33(gl_PointSize)
38: 20(float) FMul 37 36
Store 33(gl_PointSize) 38
28: 20(float) Load 27(ps)
29: 21(fvec4) CompositeConstruct 28 28 28 28
31: 30(ptr) AccessChain 24 25
Store 31 29
32: 6(int) Load 8(i)
33: 20(float) ConvertSToF 32
34: 30(ptr) AccessChain 24 25
35: 21(fvec4) Load 34
36: 21(fvec4) VectorTimesScalar 35 33
37: 30(ptr) AccessChain 24 25
Store 37 36
39: 20(float) Load 27(ps)
41: 40(ptr) AccessChain 24 38
Store 41 39
42: 6(int) Load 16(j)
43: 20(float) ConvertSToF 42
44: 40(ptr) AccessChain 24 38
45: 20(float) Load 44
46: 20(float) FMul 45 43
47: 40(ptr) AccessChain 24 38
Store 47 46
Return
FunctionEnd