xref: /aosp_15_r20/external/skia/tests/sksl/shared/InstanceID.asm.vert (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Vertex %main "main" %sk_InstanceID %id
5               OpName %sk_InstanceID "sk_InstanceID"
6               OpName %id "id"
7               OpName %main "main"
8               OpDecorate %sk_InstanceID BuiltIn InstanceIndex
9               OpDecorate %id Location 1
10        %int = OpTypeInt 32 1
11%_ptr_Input_int = OpTypePointer Input %int
12%sk_InstanceID = OpVariable %_ptr_Input_int Input
13%_ptr_Output_int = OpTypePointer Output %int
14         %id = OpVariable %_ptr_Output_int Output
15       %void = OpTypeVoid
16          %9 = OpTypeFunction %void
17       %main = OpFunction %void None %9
18         %10 = OpLabel
19         %11 = OpLoad %int %sk_InstanceID
20               OpStore %id %11
21               OpReturn
22               OpFunctionEnd
23