1spv.fragmentDensity.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 21
5
6                              Capability Shader
7                              Capability FragmentDensityEXT
8                              Extension  "SPV_EXT_fragment_invocation_density"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 4  "main" 9 13 17 19
12                              ExecutionMode 4 OriginUpperLeft
13                              Source GLSL 450
14                              SourceExtension  "GL_EXT_fragment_invocation_density"
15                              Name 4  "main"
16                              Name 9  "FragSize"
17                              Name 13  "gl_FragSizeEXT"
18                              Name 17  "FragInvocationCount"
19                              Name 19  "gl_FragInvocationCountEXT"
20                              Decorate 9(FragSize) Location 0
21                              Decorate 13(gl_FragSizeEXT) Flat
22                              Decorate 13(gl_FragSizeEXT) BuiltIn FragSizeEXT
23                              Decorate 17(FragInvocationCount) Location 2
24                              Decorate 19(gl_FragInvocationCountEXT) Flat
25                              Decorate 19(gl_FragInvocationCountEXT) BuiltIn FragInvocationCountEXT
26               2:             TypeVoid
27               3:             TypeFunction 2
28               6:             TypeFloat 32
29               7:             TypeVector 6(float) 2
30               8:             TypePointer Output 7(fvec2)
31     9(FragSize):      8(ptr) Variable Output
32              10:             TypeInt 32 1
33              11:             TypeVector 10(int) 2
34              12:             TypePointer Input 11(ivec2)
3513(gl_FragSizeEXT):     12(ptr) Variable Input
36              16:             TypePointer Output 10(int)
3717(FragInvocationCount):     16(ptr) Variable Output
38              18:             TypePointer Input 10(int)
3919(gl_FragInvocationCountEXT):     18(ptr) Variable Input
40         4(main):           2 Function None 3
41               5:             Label
42              14:   11(ivec2) Load 13(gl_FragSizeEXT)
43              15:    7(fvec2) ConvertSToF 14
44                              Store 9(FragSize) 15
45              20:     10(int) Load 19(gl_FragInvocationCountEXT)
46                              Store 17(FragInvocationCount) 20
47                              Return
48                              FunctionEnd
49