blob: 403d538d9e14041f83e4acaff60bee14b83ded13 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 19
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %myvar "myvar"
OpName %x_10 "x_10"
OpName %main_1 "main_1"
OpName %main "main"
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%_ptr_Private_v4uint = OpTypePointer Private %v4uint
%5 = OpConstantNull %v4uint
%myvar = OpVariable %_ptr_Private_v4uint Private %5
%x_10 = OpVariable %_ptr_Private_v4uint Private %5
%void = OpTypeVoid
%7 = OpTypeFunction %void
%_ptr_Private_uint = OpTypePointer Private %uint
%uint_42 = OpConstant %uint 42
%main_1 = OpFunction %void None %7
%10 = OpLabel
%11 = OpLoad %v4uint %x_10
%12 = OpCompositeExtract %uint %11 2
%14 = OpAccessChain %_ptr_Private_uint %myvar %12
OpStore %14 %uint_42
OpReturn
OpFunctionEnd
%main = OpFunction %void None %7
%17 = OpLabel
%18 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd