xref: /aosp_15_r20/external/skia/tests/sksl/shared/NoFragCoordsPos.asm.vert (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Vertex %main "main" %3 %pos
5               OpName %sk_PerVertex "sk_PerVertex"
6               OpMemberName %sk_PerVertex 0 "sk_Position"
7               OpMemberName %sk_PerVertex 1 "sk_PointSize"
8               OpName %pos "pos"
9               OpName %main "main"
10               OpMemberDecorate %sk_PerVertex 0 BuiltIn Position
11               OpMemberDecorate %sk_PerVertex 1 BuiltIn PointSize
12               OpDecorate %sk_PerVertex Block
13               OpDecorate %pos Location 0
14      %float = OpTypeFloat 32
15    %v4float = OpTypeVector %float 4
16%sk_PerVertex = OpTypeStruct %v4float %float
17%_ptr_Output_sk_PerVertex = OpTypePointer Output %sk_PerVertex
18          %3 = OpVariable %_ptr_Output_sk_PerVertex Output
19%_ptr_Input_v4float = OpTypePointer Input %v4float
20        %pos = OpVariable %_ptr_Input_v4float Input
21       %void = OpTypeVoid
22         %11 = OpTypeFunction %void
23        %int = OpTypeInt 32 1
24      %int_0 = OpConstant %int 0
25%_ptr_Output_v4float = OpTypePointer Output %v4float
26       %main = OpFunction %void None %11
27         %12 = OpLabel
28         %13 = OpLoad %v4float %pos
29         %16 = OpAccessChain %_ptr_Output_v4float %3 %int_0
30               OpStore %16 %13
31               OpReturn
32               OpFunctionEnd
33