dawn-cmake/test/tint/bug/tint/1542.wgsl.expected.spvasm

42 lines
1.6 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 19
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %u_input_block "u_input_block"
OpMemberName %u_input_block 0 "inner"
OpName %UniformBuffer "UniformBuffer"
OpMemberName %UniformBuffer 0 "d"
OpName %u_input "u_input"
OpName %main "main"
OpDecorate %u_input_block Block
OpMemberDecorate %u_input_block 0 Offset 0
OpMemberDecorate %UniformBuffer 0 Offset 0
OpDecorate %u_input NonWritable
OpDecorate %u_input DescriptorSet 0
OpDecorate %u_input Binding 0
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%UniformBuffer = OpTypeStruct %v3int
%u_input_block = OpTypeStruct %UniformBuffer
%_ptr_Uniform_u_input_block = OpTypePointer Uniform %u_input_block
%u_input = OpVariable %_ptr_Uniform_u_input_block Uniform
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v3int = OpTypePointer Uniform %v3int
%v3uint = OpTypeVector %uint 3
%17 = OpConstantNull %v3uint
%main = OpFunction %void None %7
%10 = OpLabel
%14 = OpAccessChain %_ptr_Uniform_v3int %u_input %uint_0 %uint_0
%15 = OpLoad %v3int %14
%18 = OpShiftLeftLogical %v3int %15 %17
OpReturn
OpFunctionEnd