• 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 %test2D "test2D"
9OpName %test2DRect "test2DRect"
10OpName %main "main"
11OpDecorate %sk_FragColor RelaxedPrecision
12OpDecorate %sk_FragColor Location 0
13OpDecorate %sk_FragColor Index 0
14OpDecorate %sk_Clockwise BuiltIn FrontFacing
15OpDecorate %test2D RelaxedPrecision
16OpDecorate %test2D Binding 0
17OpDecorate %test2D DescriptorSet 0
18OpDecorate %test2DRect RelaxedPrecision
19OpDecorate %test2DRect Binding 1
20OpDecorate %test2DRect DescriptorSet 0
21OpDecorate %19 RelaxedPrecision
22OpDecorate %24 RelaxedPrecision
23OpDecorate %26 RelaxedPrecision
24%float = OpTypeFloat 32
25%v4float = OpTypeVector %float 4
26%_ptr_Output_v4float = OpTypePointer Output %v4float
27%sk_FragColor = OpVariable %_ptr_Output_v4float Output
28%bool = OpTypeBool
29%_ptr_Input_bool = OpTypePointer Input %bool
30%sk_Clockwise = OpVariable %_ptr_Input_bool Input
31%13 = OpTypeImage %float 2D 0 0 0 1 Unknown
32%12 = OpTypeSampledImage %13
33%_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12
34%test2D = OpVariable %_ptr_UniformConstant_12 UniformConstant
35%test2DRect = OpVariable %_ptr_UniformConstant_12 UniformConstant
36%void = OpTypeVoid
37%16 = OpTypeFunction %void
38%v2float = OpTypeVector %float 2
39%float_0_5 = OpConstant %float 0.5
40%22 = OpConstantComposite %v2float %float_0_5 %float_0_5
41%v3float = OpTypeVector %float 3
42%28 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
43%main = OpFunction %void None %16
44%17 = OpLabel
45%19 = OpLoad %12 %test2D
46%18 = OpImageSampleImplicitLod %v4float %19 %22
47OpStore %sk_FragColor %18
48%24 = OpLoad %12 %test2DRect
49%23 = OpImageSampleImplicitLod %v4float %24 %22
50OpStore %sk_FragColor %23
51%26 = OpLoad %12 %test2DRect
52%25 = OpImageSampleProjImplicitLod %v4float %26 %28
53OpStore %sk_FragColor %25
54OpReturn
55OpFunctionEnd
56