xref: /aosp_15_r20/external/skia/tests/sksl/shared/DerivativesUnused.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %main "main" %sk_FragColor
5               OpExecutionMode %main OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %main "main"
8               OpDecorate %sk_FragColor RelaxedPrecision
9               OpDecorate %sk_FragColor Location 0
10               OpDecorate %sk_FragColor Index 0
11      %float = OpTypeFloat 32
12    %v4float = OpTypeVector %float 4
13%_ptr_Output_v4float = OpTypePointer Output %v4float
14%sk_FragColor = OpVariable %_ptr_Output_v4float Output
15       %void = OpTypeVoid
16          %8 = OpTypeFunction %void
17    %float_1 = OpConstant %float 1
18%_ptr_Output_float = OpTypePointer Output %float
19        %int = OpTypeInt 32 1
20      %int_0 = OpConstant %int 0
21       %main = OpFunction %void None %8
22          %9 = OpLabel
23         %11 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
24               OpStore %11 %float_1
25               OpReturn
26               OpFunctionEnd
27