• 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 %Test "Test"
10OpMemberName %Test 0 "x"
11OpMemberName %Test 1 "y"
12OpMemberName %Test 2 "z"
13OpName %t "t"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpMemberDecorate %Test 0 Offset 0
19OpMemberDecorate %Test 1 Offset 4
20OpMemberDecorate %Test 2 Offset 8
21OpDecorate %22 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%Test = OpTypeStruct %int %int %int
33%_ptr_Function_Test = OpTypePointer Function %Test
34%int_0 = OpConstant %int 0
35%_ptr_Function_int = OpTypePointer Function %int
36%_ptr_Output_float = OpTypePointer Output %float
37%main = OpFunction %void None %11
38%12 = OpLabel
39%t = OpVariable %_ptr_Function_Test Function
40%18 = OpAccessChain %_ptr_Function_int %t %int_0
41OpStore %18 %int_0
42%20 = OpAccessChain %_ptr_Function_int %t %int_0
43%21 = OpLoad %int %20
44%22 = OpConvertSToF %float %21
45%23 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
46OpStore %23 %22
47OpReturn
48OpFunctionEnd
49