blob: 8bca660aefea18fd66f6ab51af9a5b4e87a1fa5b [file] [log] [blame]
; Test: SpvModuleScopeVarParserTest_BuiltinPointSize_Loose_WriteViaCopyObjectPriorAccess_Erased.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 501
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Vertex %500 "main" %gl_PointSize %gl_Position
OpDecorate %gl_Position BuiltIn Position
OpDecorate %gl_PointSize BuiltIn PointSize
%void = OpTypeVoid
%4 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_ptr_Output_float = OpTypePointer Output %float
%gl_PointSize = OpVariable %_ptr_Output_float Output
%_ptr_Output_v4float = OpTypePointer Output %v4float
%gl_Position = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%500 = OpFunction %void None %4
%13 = OpLabel
%20 = OpCopyObject %_ptr_Output_float %gl_PointSize
%100 = OpAccessChain %_ptr_Output_float %20
OpStore %100 %float_1
OpReturn
OpFunctionEnd