• 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 "myHalf"
10OpMemberName %_UniformBuffer 1 "myHalf4"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpMemberDecorate %_UniformBuffer 0 Offset 0
18OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
19OpMemberDecorate %_UniformBuffer 1 Offset 16
20OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
21OpDecorate %_UniformBuffer Block
22OpDecorate %10 Binding 0
23OpDecorate %10 DescriptorSet 0
24OpDecorate %30 RelaxedPrecision
25OpDecorate %34 RelaxedPrecision
26OpDecorate %35 RelaxedPrecision
27%float = OpTypeFloat 32
28%v4float = OpTypeVector %float 4
29%_ptr_Output_v4float = OpTypePointer Output %v4float
30%sk_FragColor = OpVariable %_ptr_Output_v4float Output
31%bool = OpTypeBool
32%_ptr_Input_bool = OpTypePointer Input %bool
33%sk_Clockwise = OpVariable %_ptr_Input_bool Input
34%_UniformBuffer = OpTypeStruct %float %v4float
35%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37%void = OpTypeVoid
38%15 = OpTypeFunction %void
39%v2float = OpTypeVector %float 2
40%float_0 = OpConstant %float 0
41%19 = OpConstantComposite %v2float %float_0 %float_0
42%_ptr_Function_v2float = OpTypePointer Function %v2float
43%23 = OpTypeFunction %v4float %_ptr_Function_v2float
44%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
45%int = OpTypeInt 32 1
46%int_1 = OpConstant %int 1
47%_ptr_Uniform_float = OpTypePointer Uniform %float
48%int_0 = OpConstant %int 0
49%_entrypoint_v = OpFunction %void None %15
50%16 = OpLabel
51%20 = OpVariable %_ptr_Function_v2float Function
52OpStore %20 %19
53%22 = OpFunctionCall %v4float %main %20
54OpStore %sk_FragColor %22
55OpReturn
56OpFunctionEnd
57%main = OpFunction %v4float None %23
58%24 = OpFunctionParameter %_ptr_Function_v2float
59%25 = OpLabel
60%26 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
61%30 = OpLoad %v4float %26
62%31 = OpAccessChain %_ptr_Uniform_float %10 %int_0
63%34 = OpLoad %float %31
64%35 = OpVectorTimesScalar %v4float %30 %34
65OpReturnValue %35
66OpFunctionEnd
67