• 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 %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "unknownInput"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %i "i"
13OpName %i4 "i4"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpMemberDecorate %_UniformBuffer 0 Offset 0
19OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
20OpDecorate %_UniformBuffer Block
21OpDecorate %10 Binding 0
22OpDecorate %10 DescriptorSet 0
23OpDecorate %32 RelaxedPrecision
24OpDecorate %53 RelaxedPrecision
25OpDecorate %55 RelaxedPrecision
26OpDecorate %57 RelaxedPrecision
27OpDecorate %59 RelaxedPrecision
28OpDecorate %60 RelaxedPrecision
29%float = OpTypeFloat 32
30%v4float = OpTypeVector %float 4
31%_ptr_Output_v4float = OpTypePointer Output %v4float
32%sk_FragColor = OpVariable %_ptr_Output_v4float Output
33%bool = OpTypeBool
34%_ptr_Input_bool = OpTypePointer Input %bool
35%sk_Clockwise = OpVariable %_ptr_Input_bool Input
36%_UniformBuffer = OpTypeStruct %float
37%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
38%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
39%void = OpTypeVoid
40%15 = OpTypeFunction %void
41%v2float = OpTypeVector %float 2
42%float_0 = OpConstant %float 0
43%19 = OpConstantComposite %v2float %float_0 %float_0
44%_ptr_Function_v2float = OpTypePointer Function %v2float
45%23 = OpTypeFunction %v4float %_ptr_Function_v2float
46%int = OpTypeInt 32 1
47%_ptr_Function_int = OpTypePointer Function %int
48%_ptr_Uniform_float = OpTypePointer Uniform %float
49%int_0 = OpConstant %int 0
50%v4int = OpTypeVector %int 4
51%_ptr_Function_v4int = OpTypePointer Function %v4int
52%v2int = OpTypeVector %int 2
53%int_1 = OpConstant %int 1
54%_entrypoint_v = OpFunction %void None %15
55%16 = OpLabel
56%20 = OpVariable %_ptr_Function_v2float Function
57OpStore %20 %19
58%22 = OpFunctionCall %v4float %main %20
59OpStore %sk_FragColor %22
60OpReturn
61OpFunctionEnd
62%main = OpFunction %v4float None %23
63%24 = OpFunctionParameter %_ptr_Function_v2float
64%25 = OpLabel
65%i = OpVariable %_ptr_Function_int Function
66%i4 = OpVariable %_ptr_Function_v4int Function
67%29 = OpAccessChain %_ptr_Uniform_float %10 %int_0
68%32 = OpLoad %float %29
69%33 = OpConvertFToS %int %32
70OpStore %i %33
71%37 = OpLoad %int %i
72%38 = OpCompositeConstruct %v4int %37 %37 %37 %37
73OpStore %i4 %38
74%39 = OpLoad %int %i
75%40 = OpCompositeConstruct %v2int %39 %39
76%42 = OpCompositeExtract %int %40 0
77%43 = OpCompositeExtract %int %40 1
78%45 = OpCompositeConstruct %v4int %42 %43 %int_0 %int_1
79OpStore %i4 %45
80%46 = OpLoad %int %i
81%47 = OpCompositeConstruct %v4int %int_0 %46 %int_1 %int_0
82OpStore %i4 %47
83%48 = OpLoad %int %i
84%49 = OpLoad %int %i
85%50 = OpCompositeConstruct %v4int %int_0 %48 %int_0 %49
86OpStore %i4 %50
87%51 = OpLoad %v4int %i4
88%52 = OpCompositeExtract %int %51 0
89%53 = OpConvertSToF %float %52
90%54 = OpCompositeExtract %int %51 1
91%55 = OpConvertSToF %float %54
92%56 = OpCompositeExtract %int %51 2
93%57 = OpConvertSToF %float %56
94%58 = OpCompositeExtract %int %51 3
95%59 = OpConvertSToF %float %58
96%60 = OpCompositeConstruct %v4float %53 %55 %57 %59
97OpReturnValue %60
98OpFunctionEnd
99