blob: 11477769b135096ba180aecf72b0cc6da37e3443 [file] [log] [blame]
Chao Chen5b2203d2018-09-19 11:43:21 -07001spv.shadingRate.frag
Chao Chen5b2203d2018-09-19 11:43:21 -07002// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 21
5
6 Capability Shader
Daniel Koch5154db52018-11-26 10:01:58 -05007 Capability FragmentDensityEXT
Chao Chen5b2203d2018-09-19 11:43:21 -07008 Extension "SPV_NV_shading_rate"
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_NV_shading_rate_image"
15 Name 4 "main"
16 Name 9 "FragmentSize"
17 Name 13 "gl_FragmentSizeNV"
18 Name 17 "InvocationsPerPixel"
19 Name 19 "gl_InvocationsPerPixelNV"
20 Decorate 9(FragmentSize) Location 0
21 Decorate 13(gl_FragmentSizeNV) Flat
Daniel Koch5154db52018-11-26 10:01:58 -050022 Decorate 13(gl_FragmentSizeNV) BuiltIn FragSizeEXT
Chao Chen5b2203d2018-09-19 11:43:21 -070023 Decorate 17(InvocationsPerPixel) Location 2
24 Decorate 19(gl_InvocationsPerPixelNV) Flat
Daniel Koch5154db52018-11-26 10:01:58 -050025 Decorate 19(gl_InvocationsPerPixelNV) BuiltIn FragInvocationCountEXT
Chao Chen5b2203d2018-09-19 11:43:21 -070026 2: TypeVoid
27 3: TypeFunction 2
28 6: TypeFloat 32
29 7: TypeVector 6(float) 2
30 8: TypePointer Output 7(fvec2)
31 9(FragmentSize): 8(ptr) Variable Output
32 10: TypeInt 32 1
33 11: TypeVector 10(int) 2
34 12: TypePointer Input 11(ivec2)
3513(gl_FragmentSizeNV): 12(ptr) Variable Input
36 16: TypePointer Output 10(int)
3717(InvocationsPerPixel): 16(ptr) Variable Output
38 18: TypePointer Input 10(int)
3919(gl_InvocationsPerPixelNV): 18(ptr) Variable Input
40 4(main): 2 Function None 3
41 5: Label
42 14: 11(ivec2) Load 13(gl_FragmentSizeNV)
43 15: 7(fvec2) ConvertSToF 14
44 Store 9(FragmentSize) 15
45 20: 10(int) Load 19(gl_InvocationsPerPixelNV)
46 Store 17(InvocationsPerPixel) 20
47 Return
48 FunctionEnd