mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 12:05:20 +00:00
Updated GLSL and SPIR-V shaders (added gl_PerVertex redeclaration to vertex shaders).
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
shader.vert
|
||||
Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
|
||||
Tutorial04/Data04/shader.vert
|
||||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
@@ -7,53 +7,45 @@ Linked vertex stage:
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 24
|
||||
// Id's are bound by 21
|
||||
|
||||
Capability Shader
|
||||
Capability ClipDistance
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 13 17 21 22
|
||||
Source GLSL 430
|
||||
EntryPoint Vertex 4 "main" 10 14 18 19
|
||||
Source GLSL 450
|
||||
Name 4 "main"
|
||||
Name 11 "gl_PerVertex"
|
||||
MemberName 11(gl_PerVertex) 0 "gl_Position"
|
||||
MemberName 11(gl_PerVertex) 1 "gl_PointSize"
|
||||
MemberName 11(gl_PerVertex) 2 "gl_ClipDistance"
|
||||
Name 13 ""
|
||||
Name 17 "i_Position"
|
||||
Name 21 "v_Color"
|
||||
Name 22 "i_Color"
|
||||
MemberDecorate 11(gl_PerVertex) 0 BuiltIn Position
|
||||
MemberDecorate 11(gl_PerVertex) 1 BuiltIn PointSize
|
||||
MemberDecorate 11(gl_PerVertex) 2 BuiltIn ClipDistance
|
||||
Decorate 11(gl_PerVertex) Block
|
||||
Decorate 17(i_Position) Location 0
|
||||
Decorate 21(v_Color) Location 0
|
||||
Decorate 22(i_Color) Location 1
|
||||
Name 8 "gl_PerVertex"
|
||||
MemberName 8(gl_PerVertex) 0 "gl_Position"
|
||||
Name 10 ""
|
||||
Name 14 "i_Position"
|
||||
Name 18 "v_Color"
|
||||
Name 19 "i_Color"
|
||||
MemberDecorate 8(gl_PerVertex) 0 BuiltIn Position
|
||||
Decorate 8(gl_PerVertex) Block
|
||||
Decorate 14(i_Position) Location 0
|
||||
Decorate 18(v_Color) Location 0
|
||||
Decorate 19(i_Color) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypeInt 32 0
|
||||
9: 8(int) Constant 1
|
||||
10: TypeArray 6(float) 9
|
||||
11(gl_PerVertex): TypeStruct 7(fvec4) 6(float) 10
|
||||
12: TypePointer Output 11(gl_PerVertex)
|
||||
13: 12(ptr) Variable Output
|
||||
14: TypeInt 32 1
|
||||
15: 14(int) Constant 0
|
||||
16: TypePointer Input 7(fvec4)
|
||||
17(i_Position): 16(ptr) Variable Input
|
||||
19: TypePointer Output 7(fvec4)
|
||||
21(v_Color): 19(ptr) Variable Output
|
||||
22(i_Color): 16(ptr) Variable Input
|
||||
8(gl_PerVertex): TypeStruct 7(fvec4)
|
||||
9: TypePointer Output 8(gl_PerVertex)
|
||||
10: 9(ptr) Variable Output
|
||||
11: TypeInt 32 1
|
||||
12: 11(int) Constant 0
|
||||
13: TypePointer Input 7(fvec4)
|
||||
14(i_Position): 13(ptr) Variable Input
|
||||
16: TypePointer Output 7(fvec4)
|
||||
18(v_Color): 16(ptr) Variable Output
|
||||
19(i_Color): 13(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
18: 7(fvec4) Load 17(i_Position)
|
||||
20: 19(ptr) AccessChain 13 15
|
||||
Store 20 18
|
||||
23: 7(fvec4) Load 22(i_Color)
|
||||
Store 21(v_Color) 23
|
||||
15: 7(fvec4) Load 14(i_Position)
|
||||
17: 16(ptr) AccessChain 10 12
|
||||
Store 17 15
|
||||
20: 7(fvec4) Load 19(i_Color)
|
||||
Store 18(v_Color) 20
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user