blob: 8d3c909e3d2396564405cd9663e881ce115a481e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 28
; Schema: 0
OpCapability Shader
OpCapability InputAttachment
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %fragment_main "fragment_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpName %arg_0 "arg_0"
OpName %prevent_dce_block "prevent_dce_block"
OpMemberName %prevent_dce_block 0 "inner"
OpName %prevent_dce "prevent_dce"
OpName %inputAttachmentLoad_315bf5 "inputAttachmentLoad_315bf5"
OpName %res "res"
OpName %fragment_main "fragment_main"
OpDecorate %arg_0 InputAttachmentIndex 3
OpDecorate %arg_0 DescriptorSet 1
OpDecorate %arg_0 Binding 0
OpDecorate %prevent_dce_block Block
OpMemberDecorate %prevent_dce_block 0 Offset 0
OpDecorate %prevent_dce DescriptorSet 2
OpDecorate %prevent_dce Binding 0
%int = OpTypeInt 32 1
%3 = OpTypeImage %int SubpassData 0 0 0 2 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%v4int = OpTypeVector %int 4
%prevent_dce_block = OpTypeStruct %v4int
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%16 = OpConstantNull %v2int
%_ptr_Function_v4int = OpTypePointer Function %v4int
%19 = OpConstantNull %v4int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%inputAttachmentLoad_315bf5 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4int Function %19
%14 = OpLoad %3 %arg_0
%13 = OpImageRead %v4int %14 %16
OpStore %res %13
%23 = OpAccessChain %_ptr_StorageBuffer_v4int %prevent_dce %uint_0
%24 = OpLoad %v4int %res
OpStore %23 %24
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %void %inputAttachmentLoad_315bf5
OpReturn
OpFunctionEnd