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