• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.earlyAndlateFragmentTests.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 16
5
6                              Capability Shader
7                              Extension  "SPV_AMD_shader_early_and_late_fragment_tests"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Fragment 4  "main" 8 11
11                              ExecutionMode 4 OriginUpperLeft
12                              ExecutionMode 4 EarlyAndLateFragmentTestsAMD
13                              ExecutionMode 4 DepthReplacing
14                              ExecutionMode 4 DepthLess
15                              Source GLSL 450
16                              SourceExtension  "GL_ARB_fragment_shader_interlock"
17                              SourceExtension  "GL_ARB_shader_stencil_export"
18                              SourceExtension  "GL_EXT_fragment_shading_rate"
19                              Name 4  "main"
20                              Name 8  "gl_FragDepth"
21                              Name 11  "instanceIndex"
22                              Decorate 8(gl_FragDepth) BuiltIn FragDepth
23                              Decorate 11(instanceIndex) Flat
24                              Decorate 11(instanceIndex) Location 0
25               2:             TypeVoid
26               3:             TypeFunction 2
27               6:             TypeFloat 32
28               7:             TypePointer Output 6(float)
29 8(gl_FragDepth):      7(ptr) Variable Output
30               9:             TypeInt 32 1
31              10:             TypePointer Input 9(int)
3211(instanceIndex):     10(ptr) Variable Input
33              14:    6(float) Constant 1117913088
34         4(main):           2 Function None 3
35               5:             Label
36              12:      9(int) Load 11(instanceIndex)
37              13:    6(float) ConvertSToF 12
38              15:    6(float) FDiv 13 14
39                              Store 8(gl_FragDepth) 15
40                              Return
41                              FunctionEnd
42