blob: 592425a5c082432fb3d8aedf360a13bb6d61a8ff [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 23
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %fragment_main "fragment_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpName %tex "tex"
OpName %fragment_main "fragment_main"
OpName %value "value"
OpDecorate %tex DescriptorSet 0
OpDecorate %tex Binding 0
OpDecorate %tex NonReadable
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 0 0 2 Rgba8
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%tex = OpVariable %_ptr_UniformConstant_3 UniformConstant
%void = OpTypeVoid
%7 = OpTypeFunction %void
%v4float = OpTypeVector %float 4
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%value = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_9 = OpConstant %int 9
%int_8 = OpConstant %int 8
%18 = OpConstantComposite %v2int %int_9 %int_8
%fragment_main = OpFunction %void None %7
%8 = OpLabel
%15 = OpLoad %3 %tex None
%16 = OpVectorShuffle %v4float %value %value 2 1 0 3
OpImageWrite %15 %18 %16 None
OpReturn
OpFunctionEnd