• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Vertex %main "main" %3
5OpName %sk_PerVertex "sk_PerVertex"
6OpMemberName %sk_PerVertex 0 "sk_Position"
7OpMemberName %sk_PerVertex 1 "sk_PointSize"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "sk_RTAdjust"
10OpName %main "main"
11OpMemberDecorate %sk_PerVertex 0 BuiltIn Position
12OpMemberDecorate %sk_PerVertex 1 BuiltIn PointSize
13OpDecorate %sk_PerVertex Block
14OpMemberDecorate %_UniformBuffer 0 DescriptorSet 0
15OpMemberDecorate %_UniformBuffer 0 Offset 0
16OpDecorate %_UniformBuffer Block
17OpDecorate %8 Binding 0
18OpDecorate %8 DescriptorSet 0
19%float = OpTypeFloat 32
20%v4float = OpTypeVector %float 4
21%sk_PerVertex = OpTypeStruct %v4float %float
22%_ptr_Output_sk_PerVertex = OpTypePointer Output %sk_PerVertex
23%3 = OpVariable %_ptr_Output_sk_PerVertex Output
24%_UniformBuffer = OpTypeStruct %v4float
25%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
26%8 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
27%void = OpTypeVoid
28%12 = OpTypeFunction %void
29%float_1 = OpConstant %float 1
30%15 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
31%int = OpTypeInt 32 1
32%int_0 = OpConstant %int 0
33%_ptr_Output_v4float = OpTypePointer Output %v4float
34%v2float = OpTypeVector %float 2
35%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
36%float_0 = OpConstant %float 0
37%main = OpFunction %void None %12
38%13 = OpLabel
39%18 = OpAccessChain %_ptr_Output_v4float %3 %int_0
40OpStore %18 %15
41%20 = OpAccessChain %_ptr_Output_v4float %3 %int_0
42%21 = OpLoad %v4float %20
43%22 = OpVectorShuffle %v2float %21 %21 0 1
44%24 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0
45%26 = OpLoad %v4float %24
46%27 = OpVectorShuffle %v2float %26 %26 0 2
47%28 = OpFMul %v2float %22 %27
48%29 = OpAccessChain %_ptr_Output_v4float %3 %int_0
49%30 = OpLoad %v4float %29
50%31 = OpVectorShuffle %v2float %30 %30 3 3
51%32 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0
52%33 = OpLoad %v4float %32
53%34 = OpVectorShuffle %v2float %33 %33 1 3
54%35 = OpFMul %v2float %31 %34
55%36 = OpFAdd %v2float %28 %35
56%37 = OpCompositeExtract %float %36 0
57%38 = OpCompositeExtract %float %36 1
58%40 = OpAccessChain %_ptr_Output_v4float %3 %int_0
59%41 = OpLoad %v4float %40
60%42 = OpCompositeExtract %float %41 3
61%43 = OpCompositeConstruct %v4float %37 %38 %float_0 %42
62%44 = OpAccessChain %_ptr_Output_v4float %3 %int_0
63OpStore %44 %43
64OpReturn
65OpFunctionEnd
66