1spv.builtin.PrimitiveShadingRateEXT.vert
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 26
5
6                              Capability Shader
7                              Capability FragmentShadingRateKHR
8                              Extension  "SPV_KHR_fragment_shading_rate"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 4  "main" 8 16
12                              Source GLSL 450
13                              SourceExtension  "GL_EXT_fragment_shading_rate"
14                              Name 4  "main"
15                              Name 8  "id"
16                              Name 16  "gl_PrimitiveShadingRateEXT"
17                              Decorate 8(id) Location 0
18                              Decorate 16(gl_PrimitiveShadingRateEXT) BuiltIn PrimitiveShadingRateKHR
19               2:             TypeVoid
20               3:             TypeFunction 2
21               6:             TypeInt 32 1
22               7:             TypePointer Input 6(int)
23           8(id):      7(ptr) Variable Input
24              15:             TypePointer Output 6(int)
2516(gl_PrimitiveShadingRateEXT):     15(ptr) Variable Output
26              17:      6(int) Constant 5
27              19:      6(int) Constant 9
28              21:      6(int) Constant 6
29              23:      6(int) Constant 10
30         4(main):           2 Function None 3
31               5:             Label
32               9:      6(int) Load 8(id)
33                              SelectionMerge 14 None
34                              Switch 9 14
35                                     case 0: 10
36                                     case 1: 11
37                                     case 2: 12
38                                     case 3: 13
39              10:               Label
40                                Store 16(gl_PrimitiveShadingRateEXT) 17
41                                Branch 14
42              11:               Label
43                                Store 16(gl_PrimitiveShadingRateEXT) 19
44                                Branch 14
45              12:               Label
46                                Store 16(gl_PrimitiveShadingRateEXT) 21
47                                Branch 14
48              13:               Label
49                                Store 16(gl_PrimitiveShadingRateEXT) 23
50                                Branch 14
51              14:             Label
52                              Return
53                              FunctionEnd
54