1spv.smBuiltins.vert
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 29
5
6                              Capability Shader
7                              Capability ShaderSMBuiltinsNV
8                              Extension  "SPV_NV_shader_sm_builtins"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 4  "main" 15 18 20 22 24
12                              Source GLSL 450
13                              SourceExtension  "GL_NV_shader_sm_builtins"
14                              Name 4  "main"
15                              Name 9  "Output"
16                              MemberName 9(Output) 0  "result"
17                              Name 11  ""
18                              Name 15  "gl_VertexIndex"
19                              Name 18  "gl_WarpsPerSMNV"
20                              Name 20  "gl_SMCountNV"
21                              Name 22  "gl_WarpIDNV"
22                              Name 24  "gl_SMIDNV"
23                              Decorate 8 ArrayStride 16
24                              MemberDecorate 9(Output) 0 Offset 0
25                              Decorate 9(Output) BufferBlock
26                              Decorate 11 DescriptorSet 0
27                              Decorate 11 Binding 0
28                              Decorate 15(gl_VertexIndex) BuiltIn VertexIndex
29                              Decorate 18(gl_WarpsPerSMNV) BuiltIn WarpsPerSMNV
30                              Decorate 20(gl_SMCountNV) BuiltIn SMCountNV
31                              Decorate 22(gl_WarpIDNV) BuiltIn WarpIDNV
32                              Decorate 24(gl_SMIDNV) BuiltIn SMIDNV
33               2:             TypeVoid
34               3:             TypeFunction 2
35               6:             TypeInt 32 0
36               7:             TypeVector 6(int) 4
37               8:             TypeRuntimeArray 7(ivec4)
38       9(Output):             TypeStruct 8
39              10:             TypePointer Uniform 9(Output)
40              11:     10(ptr) Variable Uniform
41              12:             TypeInt 32 1
42              13:     12(int) Constant 0
43              14:             TypePointer Input 12(int)
4415(gl_VertexIndex):     14(ptr) Variable Input
45              17:             TypePointer Input 6(int)
4618(gl_WarpsPerSMNV):     17(ptr) Variable Input
4720(gl_SMCountNV):     17(ptr) Variable Input
48 22(gl_WarpIDNV):     17(ptr) Variable Input
49   24(gl_SMIDNV):     17(ptr) Variable Input
50              27:             TypePointer Uniform 7(ivec4)
51         4(main):           2 Function None 3
52               5:             Label
53              16:     12(int) Load 15(gl_VertexIndex)
54              19:      6(int) Load 18(gl_WarpsPerSMNV)
55              21:      6(int) Load 20(gl_SMCountNV)
56              23:      6(int) Load 22(gl_WarpIDNV)
57              25:      6(int) Load 24(gl_SMIDNV)
58              26:    7(ivec4) CompositeConstruct 19 21 23 25
59              28:     27(ptr) AccessChain 11 13 16
60                              Store 28 26
61                              Return
62                              FunctionEnd
63