SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
parent
019f08fcd8
commit
6c292d3ba7
200 changed files with 7841 additions and 5577 deletions
|
|
@ -7,13 +7,13 @@ Linked vertex stage:
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 69
|
||||
// Id's are bound by 63
|
||||
|
||||
Capability Shader
|
||||
Capability ClipDistance
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 12 23 34 44 45 65 67 68
|
||||
EntryPoint Vertex 4 "main" 12 23 34 38 41 42 62
|
||||
Source GLSL 430
|
||||
Name 4 "main"
|
||||
Name 10 "gl_PerVertex"
|
||||
|
|
@ -21,58 +21,57 @@ Linked vertex stage:
|
|||
Name 12 ""
|
||||
Name 23 "bad"
|
||||
Name 34 "badorder3"
|
||||
Name 39 "f"
|
||||
Name 43 "uv4"
|
||||
Name 44 "badorder"
|
||||
Name 45 "badorder2"
|
||||
Name 46 "boundblock"
|
||||
MemberName 46(boundblock) 0 "aoeu"
|
||||
Name 48 "boundInst"
|
||||
Name 49 "anonblock"
|
||||
MemberName 49(anonblock) 0 "aoeu"
|
||||
Name 51 ""
|
||||
Name 55 "sampb1"
|
||||
Name 58 "sampb2"
|
||||
Name 59 "sampb4"
|
||||
Name 62 "S"
|
||||
MemberName 62(S) 0 "a"
|
||||
MemberName 62(S) 1 "b"
|
||||
MemberName 62(S) 2 "c"
|
||||
Name 63 "SS"
|
||||
MemberName 63(SS) 0 "b"
|
||||
MemberName 63(SS) 1 "s"
|
||||
MemberName 63(SS) 2 "c"
|
||||
Name 65 "var"
|
||||
Name 67 "gl_VertexID"
|
||||
Name 68 "gl_InstanceID"
|
||||
Name 38 "f"
|
||||
Name 41 "badorder"
|
||||
Name 42 "badorder2"
|
||||
Name 43 "boundblock"
|
||||
MemberName 43(boundblock) 0 "aoeu"
|
||||
Name 45 "boundInst"
|
||||
Name 46 "anonblock"
|
||||
MemberName 46(anonblock) 0 "aoeu"
|
||||
Name 48 ""
|
||||
Name 52 "sampb1"
|
||||
Name 55 "sampb2"
|
||||
Name 56 "sampb4"
|
||||
Name 59 "S"
|
||||
MemberName 59(S) 0 "a"
|
||||
MemberName 59(S) 1 "b"
|
||||
MemberName 59(S) 2 "c"
|
||||
Name 60 "SS"
|
||||
MemberName 60(SS) 0 "b"
|
||||
MemberName 60(SS) 1 "s"
|
||||
MemberName 60(SS) 2 "c"
|
||||
Name 62 "var"
|
||||
MemberDecorate 10(gl_PerVertex) 0 BuiltIn ClipDistance
|
||||
Decorate 10(gl_PerVertex) Block
|
||||
Decorate 34(badorder3) Flat
|
||||
Decorate 43(uv4) Location 4
|
||||
Decorate 45(badorder2) Invariant
|
||||
Decorate 46(boundblock) GLSLShared
|
||||
Decorate 46(boundblock) Block
|
||||
Decorate 48(boundInst) Binding 3
|
||||
Decorate 49(anonblock) GLSLShared
|
||||
Decorate 49(anonblock) Block
|
||||
Decorate 51 Binding 7
|
||||
Decorate 55(sampb1) Binding 4
|
||||
Decorate 58(sampb2) Binding 5
|
||||
Decorate 59(sampb4) Binding 31
|
||||
MemberDecorate 62(S) 0 Flat
|
||||
MemberDecorate 62(S) 0 Location 1
|
||||
MemberDecorate 62(S) 1 Flat
|
||||
MemberDecorate 62(S) 1 Location 2
|
||||
MemberDecorate 62(S) 2 Flat
|
||||
MemberDecorate 62(S) 2 Location 3
|
||||
MemberDecorate 63(SS) 0 Flat
|
||||
MemberDecorate 63(SS) 0 Location 0
|
||||
MemberDecorate 63(SS) 1 Flat
|
||||
MemberDecorate 63(SS) 1 Location 1
|
||||
MemberDecorate 63(SS) 2 Flat
|
||||
MemberDecorate 63(SS) 2 Location 4
|
||||
Decorate 67(gl_VertexID) BuiltIn VertexId
|
||||
Decorate 68(gl_InstanceID) BuiltIn InstanceId
|
||||
Decorate 42(badorder2) Invariant
|
||||
MemberDecorate 43(boundblock) 0 Offset 0
|
||||
Decorate 43(boundblock) Block
|
||||
Decorate 45(boundInst) DescriptorSet 0
|
||||
Decorate 45(boundInst) Binding 3
|
||||
MemberDecorate 46(anonblock) 0 Offset 0
|
||||
Decorate 46(anonblock) Block
|
||||
Decorate 48 DescriptorSet 0
|
||||
Decorate 48 Binding 7
|
||||
Decorate 52(sampb1) DescriptorSet 0
|
||||
Decorate 52(sampb1) Binding 4
|
||||
Decorate 55(sampb2) DescriptorSet 0
|
||||
Decorate 55(sampb2) Binding 5
|
||||
Decorate 56(sampb4) DescriptorSet 0
|
||||
Decorate 56(sampb4) Binding 31
|
||||
MemberDecorate 59(S) 0 Flat
|
||||
MemberDecorate 59(S) 0 Location 1
|
||||
MemberDecorate 59(S) 1 Flat
|
||||
MemberDecorate 59(S) 1 Location 2
|
||||
MemberDecorate 59(S) 2 Flat
|
||||
MemberDecorate 59(S) 2 Location 3
|
||||
MemberDecorate 60(SS) 0 Flat
|
||||
MemberDecorate 60(SS) 0 Location 0
|
||||
MemberDecorate 60(SS) 1 Flat
|
||||
MemberDecorate 60(SS) 1 Location 1
|
||||
MemberDecorate 60(SS) 2 Flat
|
||||
MemberDecorate 60(SS) 2 Location 4
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -99,35 +98,29 @@ Linked vertex stage:
|
|||
33: TypePointer Output 19(fvec4)
|
||||
34(badorder3): 33(ptr) Variable Output
|
||||
35: TypePointer Input 19(fvec4)
|
||||
38: TypePointer UniformConstant 6(float)
|
||||
39(f): 38(ptr) Variable UniformConstant
|
||||
42: TypePointer UniformConstant 19(fvec4)
|
||||
43(uv4): 42(ptr) Variable UniformConstant
|
||||
44(badorder): 35(ptr) Variable Input
|
||||
45(badorder2): 33(ptr) Variable Output
|
||||
46(boundblock): TypeStruct 13(int)
|
||||
47: TypePointer Uniform 46(boundblock)
|
||||
48(boundInst): 47(ptr) Variable Uniform
|
||||
49(anonblock): TypeStruct 13(int)
|
||||
50: TypePointer Uniform 49(anonblock)
|
||||
51: 50(ptr) Variable Uniform
|
||||
52: TypeImage 6(float) 2D sampled format:Unknown
|
||||
53: TypeSampledImage 52
|
||||
38(f): 25(ptr) Variable Input
|
||||
41(badorder): 35(ptr) Variable Input
|
||||
42(badorder2): 33(ptr) Variable Output
|
||||
43(boundblock): TypeStruct 13(int)
|
||||
44: TypePointer Uniform 43(boundblock)
|
||||
45(boundInst): 44(ptr) Variable Uniform
|
||||
46(anonblock): TypeStruct 13(int)
|
||||
47: TypePointer Uniform 46(anonblock)
|
||||
48: 47(ptr) Variable Uniform
|
||||
49: TypeImage 6(float) 2D sampled format:Unknown
|
||||
50: TypeSampledImage 49
|
||||
51: TypePointer UniformConstant 50
|
||||
52(sampb1): 51(ptr) Variable UniformConstant
|
||||
53: TypeArray 50 20
|
||||
54: TypePointer UniformConstant 53
|
||||
55(sampb1): 54(ptr) Variable UniformConstant
|
||||
56: TypeArray 53 20
|
||||
57: TypePointer UniformConstant 56
|
||||
58(sampb2): 57(ptr) Variable UniformConstant
|
||||
59(sampb4): 54(ptr) Variable UniformConstant
|
||||
60: TypeVector 7(int) 2
|
||||
61: TypeVector 6(float) 3
|
||||
62(S): TypeStruct 6(float) 60(ivec2) 61(fvec3)
|
||||
63(SS): TypeStruct 19(fvec4) 62(S) 19(fvec4)
|
||||
64: TypePointer Output 63(SS)
|
||||
65(var): 64(ptr) Variable Output
|
||||
66: TypePointer Input 13(int)
|
||||
67(gl_VertexID): 66(ptr) Variable Input
|
||||
68(gl_InstanceID): 66(ptr) Variable Input
|
||||
55(sampb2): 54(ptr) Variable UniformConstant
|
||||
56(sampb4): 51(ptr) Variable UniformConstant
|
||||
57: TypeVector 7(int) 2
|
||||
58: TypeVector 6(float) 3
|
||||
59(S): TypeStruct 6(float) 57(ivec2) 58(fvec3)
|
||||
60(SS): TypeStruct 19(fvec4) 59(S) 19(fvec4)
|
||||
61: TypePointer Output 60(SS)
|
||||
62(var): 61(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
18: 17(ptr) AccessChain 12 14 15
|
||||
|
|
@ -143,8 +136,8 @@ Linked vertex stage:
|
|||
Store 34(badorder3) 37
|
||||
Branch 32
|
||||
32: Label
|
||||
40: 6(float) Load 39(f)
|
||||
41: 17(ptr) AccessChain 12 14 14
|
||||
Store 41 40
|
||||
39: 6(float) Load 38(f)
|
||||
40: 17(ptr) AccessChain 12 14 14
|
||||
Store 40 39
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue