• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_entrypoint_v "_entrypoint_v"
9OpName %main "main"
10OpName %S "S"
11OpMemberName %S 0 "rgb"
12OpMemberName %S 1 "a"
13OpName %s "s"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpDecorate %_arr_float_int_3 ArrayStride 16
19OpMemberDecorate %S 0 Offset 0
20OpMemberDecorate %S 0 RelaxedPrecision
21OpMemberDecorate %S 1 Offset 48
22OpMemberDecorate %S 1 RelaxedPrecision
23OpDecorate %39 RelaxedPrecision
24OpDecorate %41 RelaxedPrecision
25OpDecorate %43 RelaxedPrecision
26OpDecorate %45 RelaxedPrecision
27OpDecorate %46 RelaxedPrecision
28%float = OpTypeFloat 32
29%v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
31%sk_FragColor = OpVariable %_ptr_Output_v4float Output
32%bool = OpTypeBool
33%_ptr_Input_bool = OpTypePointer Input %bool
34%sk_Clockwise = OpVariable %_ptr_Input_bool Input
35%void = OpTypeVoid
36%12 = OpTypeFunction %void
37%v2float = OpTypeVector %float 2
38%float_0 = OpConstant %float 0
39%16 = OpConstantComposite %v2float %float_0 %float_0
40%_ptr_Function_v2float = OpTypePointer Function %v2float
41%20 = OpTypeFunction %v4float %_ptr_Function_v2float
42%int = OpTypeInt 32 1
43%int_3 = OpConstant %int 3
44%_arr_float_int_3 = OpTypeArray %float %int_3
45%S = OpTypeStruct %_arr_float_int_3 %float
46%_ptr_Function_S = OpTypePointer Function %S
47%int_0 = OpConstant %int 0
48%_ptr_Function_float = OpTypePointer Function %float
49%float_1 = OpConstant %float 1
50%int_1 = OpConstant %int 1
51%int_2 = OpConstant %int 2
52%_entrypoint_v = OpFunction %void None %12
53%13 = OpLabel
54%17 = OpVariable %_ptr_Function_v2float Function
55OpStore %17 %16
56%19 = OpFunctionCall %v4float %main %17
57OpStore %sk_FragColor %19
58OpReturn
59OpFunctionEnd
60%main = OpFunction %v4float None %20
61%21 = OpFunctionParameter %_ptr_Function_v2float
62%22 = OpLabel
63%s = OpVariable %_ptr_Function_S Function
64%30 = OpAccessChain %_ptr_Function_float %s %int_0 %int_0
65OpStore %30 %float_0
66%34 = OpAccessChain %_ptr_Function_float %s %int_0 %int_1
67OpStore %34 %float_1
68%36 = OpAccessChain %_ptr_Function_float %s %int_0 %int_2
69OpStore %36 %float_0
70%37 = OpAccessChain %_ptr_Function_float %s %int_1
71OpStore %37 %float_1
72%38 = OpAccessChain %_ptr_Function_float %s %int_0 %int_0
73%39 = OpLoad %float %38
74%40 = OpAccessChain %_ptr_Function_float %s %int_0 %int_1
75%41 = OpLoad %float %40
76%42 = OpAccessChain %_ptr_Function_float %s %int_0 %int_2
77%43 = OpLoad %float %42
78%44 = OpAccessChain %_ptr_Function_float %s %int_1
79%45 = OpLoad %float %44
80%46 = OpCompositeConstruct %v4float %39 %41 %43 %45
81OpReturnValue %46
82OpFunctionEnd
83