Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/asm/frag/pixel-interlock-control-flow.msl2.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 45
5 ; Schema: 0
6 OpCapability Shader
7 OpCapability FragmentShaderPixelInterlockEXT
8 OpExtension "SPV_EXT_fragment_shader_interlock"
9 %1 = OpExtInstImport "GLSL.std.450"
10 OpMemoryModel Logical GLSL450
11 OpEntryPoint Fragment %main "main" %gl_FragCoord
12 OpExecutionMode %main OriginUpperLeft
13 OpExecutionMode %main PixelInterlockOrderedEXT
14 OpSource GLSL 450
15 OpSourceExtension "GL_ARB_fragment_shader_interlock"
16 OpName %main "main"
17 OpName %callee2_ "callee2("
18 OpName %callee_ "callee("
19 OpName %SSBO1 "SSBO1"
20 OpMemberName %SSBO1 0 "values1"
21 OpName %_ ""
22 OpName %gl_FragCoord "gl_FragCoord"
23 OpName %SSBO0 "SSBO0"
24 OpMemberName %SSBO0 0 "values0"
25 OpName %__0 ""
26 OpDecorate %_runtimearr_uint ArrayStride 4
27 OpMemberDecorate %SSBO1 0 Offset 0
28 OpDecorate %SSBO1 BufferBlock
29 OpDecorate %_ DescriptorSet 0
30 OpDecorate %_ Binding 1
31 OpDecorate %gl_FragCoord BuiltIn FragCoord
32 OpDecorate %_runtimearr_uint_0 ArrayStride 4
33 OpMemberDecorate %SSBO0 0 Offset 0
34 OpDecorate %SSBO0 BufferBlock
35 OpDecorate %__0 DescriptorSet 0
36 OpDecorate %__0 Binding 0
37
38 OpMemberDecorate %SSBO2 0 Offset 0
39 OpDecorate %SSBO2 BufferBlock
40 OpDecorate %ssbo2 DescriptorSet 0
41 OpDecorate %ssbo2 Binding 2
42
43 %void = OpTypeVoid
44 %3 = OpTypeFunction %void
45 %uint = OpTypeInt 32 0
46 %_runtimearr_uint = OpTypeRuntimeArray %uint
47 %SSBO1 = OpTypeStruct %_runtimearr_uint
48 %SSBO2 = OpTypeStruct %_runtimearr_uint
49 %_ptr_Uniform_SSBO1 = OpTypePointer Uniform %SSBO1
50 %_ptr_Uniform_SSBO2 = OpTypePointer Uniform %SSBO2
51 %_ = OpVariable %_ptr_Uniform_SSBO1 Uniform
52 %ssbo2 = OpVariable %_ptr_Uniform_SSBO2 Uniform
53 %int = OpTypeInt 32 1
54 %int_0 = OpConstant %int 0
55 %uint_4 = OpConstant %uint 4
56 %float = OpTypeFloat 32
57 %v4float = OpTypeVector %float 4
58 %bool = OpTypeBool
59 %true = OpConstantTrue %bool
60 %_ptr_Input_v4float = OpTypePointer Input %v4float
61 %gl_FragCoord = OpVariable %_ptr_Input_v4float Input
62 %uint_0 = OpConstant %uint 0
63 %_ptr_Input_float = OpTypePointer Input %float
64 %uint_1 = OpConstant %uint 1
65 %_ptr_Uniform_uint = OpTypePointer Uniform %uint
66 %_runtimearr_uint_0 = OpTypeRuntimeArray %uint
67 %SSBO0 = OpTypeStruct %_runtimearr_uint_0
68 %_ptr_Uniform_SSBO0 = OpTypePointer Uniform %SSBO0
69 %__0 = OpVariable %_ptr_Uniform_SSBO0 Uniform
70 %main = OpFunction %void None %3
71 %5 = OpLabel
72 %44 = OpFunctionCall %void %callee_
73 %callee3_res = OpFunctionCall %void %callee3_
74 OpReturn
75 OpFunctionEnd
76
77 %callee3_ = OpFunction %void None %3
78 %calle3_block = OpLabel
79 %frag_coord_x_ptr = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
80 %frag_coord_x = OpLoad %float %frag_coord_x_ptr
81 %frag_coord_int = OpConvertFToS %int %frag_coord_x
82 %ssbo_ptr = OpAccessChain %_ptr_Uniform_uint %ssbo2 %int_0 %frag_coord_int
83 OpStore %ssbo_ptr %uint_4
84 OpReturn
85 OpFunctionEnd
86
87 %callee2_ = OpFunction %void None %3
88 %7 = OpLabel
89 %23 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
90 %24 = OpLoad %float %23
91 %25 = OpConvertFToS %int %24
92 %28 = OpAccessChain %_ptr_Uniform_uint %_ %int_0 %25
93 %29 = OpLoad %uint %28
94 %30 = OpIAdd %uint %29 %uint_1
95 %31 = OpAccessChain %_ptr_Uniform_uint %_ %int_0 %25
96 OpStore %31 %30
97 OpReturn
98 OpFunctionEnd
99 %callee_ = OpFunction %void None %3
100 %9 = OpLabel
101 %36 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
102 %37 = OpLoad %float %36
103 %38 = OpConvertFToS %int %37
104 %39 = OpAccessChain %_ptr_Uniform_uint %__0 %int_0 %38
105 %40 = OpLoad %uint %39
106 %41 = OpIAdd %uint %40 %uint_1
107 %42 = OpAccessChain %_ptr_Uniform_uint %__0 %int_0 %38
108 OpStore %42 %41
109 %43 = OpFunctionCall %void %callee2_
110
111 OpSelectionMerge %merged_block None
112 OpBranchConditional %true %dummy_block %merged_block
113 %dummy_block = OpLabel
114 OpBeginInvocationInterlockEXT
115 OpEndInvocationInterlockEXT
116 OpBranch %merged_block
117
118 %merged_block = OpLabel
119 OpReturn
120
121 OpFunctionEnd