skia2/tests/sksl/shared/golden/InstanceID.asm.vert
John Stiles 92072a398d Fix SPIR-V golden output file extensions.
Previously, every output was labeled ".asm.frag" regardless of the
actual type.

Change-Id: Icf3a56bb04d88cc0443f12c2dfb99c66ee00dff0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/337717
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-11-23 21:15:13 +00:00

22 lines
625 B
GLSL

OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %sk_InstanceID %id
OpName %sk_InstanceID "sk_InstanceID"
OpName %id "id"
OpName %main "main"
OpDecorate %sk_InstanceID BuiltIn InstanceIndex
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%sk_InstanceID = OpVariable %_ptr_Input_int Input
%_ptr_Output_int = OpTypePointer Output %int
%id = OpVariable %_ptr_Output_int Output
%void = OpTypeVoid
%9 = OpTypeFunction %void
%main = OpFunction %void None %9
%10 = OpLabel
%11 = OpLoad %int %sk_InstanceID
OpStore %id %11
OpReturn
OpFunctionEnd