• 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 %A "A"
9OpMemberName %A 0 "x"
10OpMemberName %A 1 "y"
11OpName %a1 "a1"
12OpName %B "B"
13OpMemberName %B 0 "x"
14OpMemberName %B 1 "y"
15OpMemberName %B 2 "z"
16OpName %b1 "b1"
17OpName %main "main"
18OpDecorate %sk_FragColor RelaxedPrecision
19OpDecorate %sk_FragColor Location 0
20OpDecorate %sk_FragColor Index 0
21OpDecorate %sk_Clockwise BuiltIn FrontFacing
22OpMemberDecorate %A 0 Offset 0
23OpMemberDecorate %A 1 Offset 4
24OpDecorate %_arr_float_int_2 ArrayStride 16
25OpMemberDecorate %B 0 Offset 0
26OpMemberDecorate %B 1 Offset 16
27OpMemberDecorate %B 2 Binding 1
28OpMemberDecorate %B 2 Offset 48
29OpMemberDecorate %B 2 RelaxedPrecision
30OpDecorate %30 RelaxedPrecision
31OpDecorate %33 RelaxedPrecision
32%float = OpTypeFloat 32
33%v4float = OpTypeVector %float 4
34%_ptr_Output_v4float = OpTypePointer Output %v4float
35%sk_FragColor = OpVariable %_ptr_Output_v4float Output
36%bool = OpTypeBool
37%_ptr_Input_bool = OpTypePointer Input %bool
38%sk_Clockwise = OpVariable %_ptr_Input_bool Input
39%int = OpTypeInt 32 1
40%A = OpTypeStruct %int %int
41%_ptr_Private_A = OpTypePointer Private %A
42%a1 = OpVariable %_ptr_Private_A Private
43%int_2 = OpConstant %int 2
44%_arr_float_int_2 = OpTypeArray %float %int_2
45%B = OpTypeStruct %float %_arr_float_int_2 %A
46%_ptr_Private_B = OpTypePointer Private %B
47%b1 = OpVariable %_ptr_Private_B Private
48%void = OpTypeVoid
49%20 = OpTypeFunction %void
50%int_0 = OpConstant %int 0
51%_ptr_Private_int = OpTypePointer Private %int
52%float_0 = OpConstant %float 0
53%_ptr_Private_float = OpTypePointer Private %float
54%_ptr_Output_float = OpTypePointer Output %float
55%main = OpFunction %void None %20
56%21 = OpLabel
57%23 = OpAccessChain %_ptr_Private_int %a1 %int_0
58OpStore %23 %int_0
59%26 = OpAccessChain %_ptr_Private_float %b1 %int_0
60OpStore %26 %float_0
61%28 = OpAccessChain %_ptr_Private_int %a1 %int_0
62%29 = OpLoad %int %28
63%30 = OpConvertSToF %float %29
64%31 = OpAccessChain %_ptr_Private_float %b1 %int_0
65%32 = OpLoad %float %31
66%33 = OpFAdd %float %30 %32
67%34 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
68OpStore %34 %33
69OpReturn
70OpFunctionEnd
71