91 lines
4.1 KiB
Plaintext
Executable File
91 lines
4.1 KiB
Plaintext
Executable File
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 49
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
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 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
|
|
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
|
|
7: TypePointer Function 6(int)
|
|
9: 6(int) Constant 4
|
|
10: TypePointer Input 6(int)
|
|
11(gl_VertexID): 10(ptr) Variable Input
|
|
14: 6(int) Constant 10
|
|
20: TypeFloat 32
|
|
21: TypeVector 20(float) 4
|
|
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
|
|
16(j): 7(ptr) Variable Function
|
|
12: 6(int) Load 11(gl_VertexID)
|
|
13: 6(int) IMul 9 12
|
|
15: 6(int) ISub 13 14
|
|
Store 8(i) 15
|
|
17: 6(int) Load 11(gl_VertexID)
|
|
18: 6(int) IMul 9 17
|
|
19: 6(int) ISub 18 14
|
|
Store 16(j) 19
|
|
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
|