Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/asm/frag/component-insert-packed-expression.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Google spiregg; 0
4 ; Bound: 43
5 ; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %frag "main" %gl_FragCoord %out_var_SV_Target
9 OpExecutionMode %frag OriginUpperLeft
10 OpSource HLSL 600
11 OpName %type__Globals "type.$Globals"
12 OpMemberName %type__Globals 0 "_BorderWidths"
13 OpName %_Globals "$Globals"
14 OpName %out_var_SV_Target "out.var.SV_Target"
15 OpName %frag "frag"
16 OpDecorate %gl_FragCoord BuiltIn FragCoord
17 OpDecorate %out_var_SV_Target Location 0
18 OpDecorate %_Globals DescriptorSet 0
19 OpDecorate %_Globals Binding 0
20 OpDecorate %_arr_float_uint_4 ArrayStride 16
21 OpMemberDecorate %type__Globals 0 Offset 0
22 OpDecorate %type__Globals Block
23 %int = OpTypeInt 32 1
24 %int_0 = OpConstant %int 0
25 %int_1 = OpConstant %int 1
26 %float = OpTypeFloat 32
27 %float_0 = OpConstant %float 0
28 %int_2 = OpConstant %int 2
29 %uint = OpTypeInt 32 0
30 %float_1 = OpConstant %float 1
31 %uint_4 = OpConstant %uint 4
32 %_arr_float_uint_4 = OpTypeArray %float %uint_4
33 %type__Globals = OpTypeStruct %_arr_float_uint_4
34 %_ptr_Uniform_type__Globals = OpTypePointer Uniform %type__Globals
35 %v4float = OpTypeVector %float 4
36 %_ptr_Input_v4float = OpTypePointer Input %v4float
37 %_ptr_Output_v4float = OpTypePointer Output %v4float
38 %void = OpTypeVoid
39 %21 = OpTypeFunction %void
40 %v2float = OpTypeVector %float 2
41 %_ptr_Uniform_float = OpTypePointer Uniform %float
42 %bool = OpTypeBool
43 %_Globals = OpVariable %_ptr_Uniform_type__Globals Uniform
44 %gl_FragCoord = OpVariable %_ptr_Input_v4float Input
45 %out_var_SV_Target = OpVariable %_ptr_Output_v4float Output
46 %frag = OpFunction %void None %21
47 %25 = OpLabel
48 %26 = OpLoad %v4float %gl_FragCoord
49 %27 = OpAccessChain %_ptr_Uniform_float %_Globals %int_0 %int_0
50 %28 = OpLoad %float %27
51 %29 = OpAccessChain %_ptr_Uniform_float %_Globals %int_0 %int_1
52 %30 = OpLoad %float %29
53 %31 = OpCompositeConstruct %v2float %28 %30
54 %32 = OpCompositeExtract %float %26 0
55 %33 = OpFOrdGreaterThan %bool %32 %float_0
56 OpSelectionMerge %34 None
57 OpBranchConditional %33 %35 %34
58 %35 = OpLabel
59 %36 = OpAccessChain %_ptr_Uniform_float %_Globals %int_0 %int_2
60 %37 = OpLoad %float %36
61 %38 = OpCompositeInsert %v2float %37 %31 0
62 OpBranch %34
63 %34 = OpLabel
64 %39 = OpPhi %v2float %31 %25 %38 %35
65 %40 = OpCompositeExtract %float %39 0
66 %41 = OpCompositeExtract %float %39 1
67 %42 = OpCompositeConstruct %v4float %40 %41 %float_0 %float_1
68 OpStore %out_var_SV_Target %42
69 OpReturn
70 OpFunctionEnd