• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %main "main"
9OpName %x "x"
10OpName %y "y"
11OpName %z "z"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpDecorate %21 RelaxedPrecision
17OpDecorate %23 RelaxedPrecision
18OpDecorate %25 RelaxedPrecision
19OpDecorate %26 RelaxedPrecision
20OpDecorate %28 RelaxedPrecision
21OpDecorate %29 RelaxedPrecision
22%float = OpTypeFloat 32
23%v4float = OpTypeVector %float 4
24%_ptr_Output_v4float = OpTypePointer Output %v4float
25%sk_FragColor = OpVariable %_ptr_Output_v4float Output
26%bool = OpTypeBool
27%_ptr_Input_bool = OpTypePointer Input %bool
28%sk_Clockwise = OpVariable %_ptr_Input_bool Input
29%void = OpTypeVoid
30%11 = OpTypeFunction %void
31%int = OpTypeInt 32 1
32%_ptr_Function_int = OpTypePointer Function %int
33%int_0 = OpConstant %int 0
34%int_1 = OpConstant %int 1
35%v3float = OpTypeVector %float 3
36%main = OpFunction %void None %11
37%12 = OpLabel
38%x = OpVariable %_ptr_Function_int Function
39%y = OpVariable %_ptr_Function_int Function
40%z = OpVariable %_ptr_Function_int Function
41OpStore %x %int_0
42OpStore %y %int_0
43OpStore %z %int_0
44OpStore %x %int_1
45OpStore %y %int_1
46OpStore %z %int_1
47%20 = OpLoad %int %x
48%21 = OpConvertSToF %float %20
49%22 = OpLoad %int %y
50%23 = OpConvertSToF %float %22
51%24 = OpLoad %int %z
52%25 = OpConvertSToF %float %24
53%26 = OpCompositeConstruct %v3float %21 %23 %25
54%28 = OpLoad %v4float %sk_FragColor
55%29 = OpVectorShuffle %v4float %28 %26 4 5 6 3
56OpStore %sk_FragColor %29
57OpReturn
58OpFunctionEnd
59