yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAdd gl_out[].gl_ViewportIndex and gl_Layer for GL_NV_viewport_array2340bea6e

main
3.9 KiB72 linesraw
1spv.viewportArray2.perVertex.tesc
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 33
5
6                              Capability Tessellation
7                              Capability ShaderViewportIndexLayerNV
8                              Capability ShaderViewportMaskNV
9                              Extension  "SPV_EXT_shader_viewport_index_layer"
10                              Extension  "SPV_NV_viewport_array2"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint TessellationControl 4  "main" 17 19
14                              ExecutionMode 4 OutputVertices 3
15                              Source GLSL 450
16                              SourceExtension  "GL_NV_viewport_array2"
17                              Name 4  "main"
18                              Name 13  "gl_PerVertex"
19                              MemberName 13(gl_PerVertex) 0  "gl_Position"
20                              MemberName 13(gl_PerVertex) 1  "gl_PointSize"
21                              MemberName 13(gl_PerVertex) 2  "gl_ClipDistance"
22                              MemberName 13(gl_PerVertex) 3  "gl_CullDistance"
23                              MemberName 13(gl_PerVertex) 4  "gl_ViewportMask"
24                              MemberName 13(gl_PerVertex) 5  "gl_ViewportIndex"
25                              MemberName 13(gl_PerVertex) 6  "gl_Layer"
26                              Name 17  "gl_out"
27                              Name 19  "gl_InvocationID"
28                              Decorate 13(gl_PerVertex) Block
29                              MemberDecorate 13(gl_PerVertex) 0 BuiltIn Position
30                              MemberDecorate 13(gl_PerVertex) 1 BuiltIn PointSize
31                              MemberDecorate 13(gl_PerVertex) 2 BuiltIn ClipDistance
32                              MemberDecorate 13(gl_PerVertex) 3 BuiltIn CullDistance
33                              MemberDecorate 13(gl_PerVertex) 4 BuiltIn ViewportMaskNV
34                              MemberDecorate 13(gl_PerVertex) 5 BuiltIn ViewportIndex
35                              MemberDecorate 13(gl_PerVertex) 6 BuiltIn Layer
36                              Decorate 19(gl_InvocationID) BuiltIn InvocationId
37               2:             TypeVoid
38               3:             TypeFunction 2
39               6:             TypeFloat 32
40               7:             TypeVector 6(float) 4
41               8:             TypeInt 32 0
42               9:      8(int) Constant 1
43              10:             TypeArray 6(float) 9
44              11:             TypeInt 32 1
45              12:             TypeArray 11(int) 9
4613(gl_PerVertex):             TypeStruct 7(fvec4) 6(float) 10 10 12 11(int) 11(int)
47              14:      8(int) Constant 3
48              15:             TypeArray 13(gl_PerVertex) 14
49              16:             TypePointer Output 15
50      17(gl_out):     16(ptr) Variable Output
51              18:             TypePointer Input 11(int)
5219(gl_InvocationID):     18(ptr) Variable Input
53              21:     11(int) Constant 5
54              22:     11(int) Constant 1
55              23:             TypePointer Output 11(int)
56              26:     11(int) Constant 6
57              27:     11(int) Constant 2
58              30:     11(int) Constant 4
59              31:     11(int) Constant 0
60         4(main):           2 Function None 3
61               5:             Label
62              20:     11(int) Load 19(gl_InvocationID)
63              24:     23(ptr) AccessChain 17(gl_out) 20 21
64                              Store 24 22
65              25:     11(int) Load 19(gl_InvocationID)
66              28:     23(ptr) AccessChain 17(gl_out) 25 26
67                              Store 28 27
68              29:     11(int) Load 19(gl_InvocationID)
69              32:     23(ptr) AccessChain 17(gl_out) 29 30 31
70                              Store 32 30
71                              Return
72                              FunctionEnd