blob: c1c59a301edd00c8b86cce4fdcdbd986c95f62c5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 26
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %tint_discarded "tint_discarded"
OpName %non_uniform_global_block "non_uniform_global_block"
OpMemberName %non_uniform_global_block 0 "inner"
OpName %non_uniform_global "non_uniform_global"
OpName %main "main"
OpDecorate %non_uniform_global_block Block
OpMemberDecorate %non_uniform_global_block 0 Offset 0
OpDecorate %non_uniform_global DescriptorSet 0
OpDecorate %non_uniform_global Binding 0
%bool = OpTypeBool
%2 = OpConstantNull %bool
%_ptr_Private_bool = OpTypePointer Private %bool
%tint_discarded = OpVariable %_ptr_Private_bool Private %2
%int = OpTypeInt 32 1
%non_uniform_global_block = OpTypeStruct %int
%_ptr_StorageBuffer_non_uniform_global_block = OpTypePointer StorageBuffer %non_uniform_global_block
%non_uniform_global = OpVariable %_ptr_StorageBuffer_non_uniform_global_block StorageBuffer
%void = OpTypeVoid
%9 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%18 = OpConstantNull %int
%true = OpConstantTrue %bool
%main = OpFunction %void None %9
%12 = OpLabel
%16 = OpAccessChain %_ptr_StorageBuffer_int %non_uniform_global %uint_0
%17 = OpLoad %int %16
%19 = OpSLessThan %bool %17 %18
OpSelectionMerge %20 None
OpBranchConditional %19 %21 %20
%21 = OpLabel
OpStore %tint_discarded %true
OpBranch %20
%20 = OpLabel
%23 = OpLoad %bool %tint_discarded
OpSelectionMerge %24 None
OpBranchConditional %23 %25 %24
%25 = OpLabel
OpKill
%24 = OpLabel
OpReturn
OpFunctionEnd