2021-07-26 11:46:47 +00:00
|
|
|
bug/tint/453.wgsl:7:26 warning: use of deprecated intrinsic
|
|
|
|
let x_22 : vec4<u32> = textureLoad(Src, vec2<i32>(0, 0));
|
|
|
|
^^^^^^^^^^^
|
|
|
|
|
2021-06-10 18:49:14 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
|
|
|
; Bound: 31
|
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %main "main"
|
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
|
|
OpName %Src "Src"
|
|
|
|
OpName %Dst "Dst"
|
|
|
|
OpName %main "main"
|
|
|
|
OpName %srcValue "srcValue"
|
|
|
|
OpDecorate %Src NonWritable
|
|
|
|
OpDecorate %Src DescriptorSet 0
|
|
|
|
OpDecorate %Src Binding 0
|
|
|
|
OpDecorate %Dst NonReadable
|
|
|
|
OpDecorate %Dst DescriptorSet 0
|
|
|
|
OpDecorate %Dst Binding 1
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%3 = OpTypeImage %uint 2D 0 0 0 2 R32ui
|
|
|
|
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
|
|
|
|
%Src = OpVariable %_ptr_UniformConstant_3 UniformConstant
|
|
|
|
%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
|
|
|
|
%Dst = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%7 = OpTypeFunction %void
|
|
|
|
%v4uint = OpTypeVector %uint 4
|
|
|
|
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
|
|
|
|
%14 = OpConstantNull %v4uint
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v2int = OpTypeVector %int 2
|
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%20 = OpConstantComposite %v2int %int_0 %int_0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%main = OpFunction %void None %7
|
|
|
|
%10 = OpLabel
|
|
|
|
%srcValue = OpVariable %_ptr_Function_v4uint Function %14
|
|
|
|
%16 = OpLoad %3 %Src
|
|
|
|
%15 = OpImageRead %v4uint %16 %20
|
|
|
|
OpStore %srcValue %15
|
|
|
|
%23 = OpAccessChain %_ptr_Function_uint %srcValue %uint_0
|
|
|
|
%24 = OpLoad %uint %23
|
|
|
|
%26 = OpIAdd %uint %24 %uint_1
|
|
|
|
%27 = OpLoad %v4uint %srcValue
|
|
|
|
%29 = OpLoad %3 %Dst
|
|
|
|
%30 = OpVectorShuffle %v4uint %27 %27 0 0 0 0
|
|
|
|
OpImageWrite %29 %20 %30
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|