Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/struct-composite-extract-swizzle.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 34
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %FragColor
10 OpExecutionMode %main OriginUpperLeft
11 OpSource ESSL 310
12 OpName %main "main"
13 OpName %FragColor "FragColor"
14 OpName %uSampler "uSampler"
15 OpName %Foo "Foo"
16 OpMemberName %Foo 0 "var1"
17 OpMemberName %Foo 1 "var2"
18 OpName %foo "foo"
19 OpDecorate %FragColor RelaxedPrecision
20 OpDecorate %FragColor Location 0
21 OpDecorate %uSampler RelaxedPrecision
22 OpDecorate %uSampler DescriptorSet 0
23 OpDecorate %uSampler Binding 0
24 OpDecorate %14 RelaxedPrecision
25 OpMemberDecorate %Foo 0 RelaxedPrecision
26 OpMemberDecorate %Foo 1 RelaxedPrecision
27 OpDecorate %27 RelaxedPrecision
28 OpDecorate %28 RelaxedPrecision
29 %void = OpTypeVoid
30 %3 = OpTypeFunction %void
31 %float = OpTypeFloat 32
32 %v4float = OpTypeVector %float 4
33 %_ptr_Output_v4float = OpTypePointer Output %v4float
34 %FragColor = OpVariable %_ptr_Output_v4float Output
35 %10 = OpTypeImage %float 2D 0 0 0 1 Unknown
36 %11 = OpTypeSampledImage %10
37 %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
38 %uSampler = OpVariable %_ptr_UniformConstant_11 UniformConstant
39 %Foo = OpTypeStruct %float %float
40 %_ptr_Function_Foo = OpTypePointer Function %Foo
41 %int = OpTypeInt 32 1
42 %_ptr_Function_float = OpTypePointer Function %float
43 %v2float = OpTypeVector %float 2
44 %33 = OpUndef %Foo
45 %main = OpFunction %void None %3
46 %5 = OpLabel
47 %foo = OpVariable %_ptr_Function_Foo Function
48 %14 = OpLoad %11 %uSampler
49 %30 = OpCompositeExtract %float %33 0
50 %32 = OpCompositeExtract %float %33 1
51 %27 = OpCompositeConstruct %v2float %30 %32
52 %28 = OpImageSampleImplicitLod %v4float %14 %27
53 OpStore %FragColor %28
54 OpReturn
55 OpFunctionEnd