blob: 1d396a3ae9e26219d22e0e136f94e6d283247e0f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %localId "localId"
OpName %localIndex "localIndex"
OpName %globalId "globalId"
OpName %numWorkgroups "numWorkgroups"
OpName %workgroupId "workgroupId"
OpName %globalId2Index "globalId2Index"
OpName %main "main"
OpName %a "a"
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%_ptr_Private_v3uint = OpTypePointer Private %v3uint
%5 = OpConstantNull %v3uint
%localId = OpVariable %_ptr_Private_v3uint Private %5
%_ptr_Private_uint = OpTypePointer Private %uint
%8 = OpConstantNull %uint
%localIndex = OpVariable %_ptr_Private_uint Private %8
%globalId = OpVariable %_ptr_Private_v3uint Private %5
%numWorkgroups = OpVariable %_ptr_Private_v3uint Private %5
%workgroupId = OpVariable %_ptr_Private_v3uint Private %5
%12 = OpTypeFunction %uint
%uint_0 = OpConstant %uint 0
%void = OpTypeVoid
%18 = OpTypeFunction %void
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%24 = OpConstantNull %v4half
%_ptr_Function_v4half = OpTypePointer Function %v4half
%half_0x1p_0 = OpConstant %half 0x1p+0
%int = OpTypeInt 32 1
%29 = OpConstantNull %int
%_ptr_Function_half = OpTypePointer Function %half
%globalId2Index = OpFunction %uint None %12
%14 = OpLabel
%16 = OpAccessChain %_ptr_Private_uint %globalId %uint_0
%17 = OpLoad %uint %16
OpReturnValue %17
OpFunctionEnd
%main = OpFunction %void None %18
%21 = OpLabel
%a = OpVariable %_ptr_Function_v4half Function %24
OpStore %a %24
%31 = OpAccessChain %_ptr_Function_half %a %29
%32 = OpAccessChain %_ptr_Function_half %a %29
%33 = OpLoad %half %32
%34 = OpFAdd %half %33 %half_0x1p_0
OpStore %31 %34
OpReturn
OpFunctionEnd