dawn-cmake/test/tint/builtins/workgroupUniformLoad/via_param.wgsl.expected.spvasm

64 lines
2.5 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 38
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %v "v"
OpName %unused_entry_point "unused_entry_point"
OpName %tint_workgroupUniformLoad_v_X "tint_workgroupUniformLoad_v_X"
OpName %p "p"
OpName %foo_v_X "foo_v_X"
OpName %p_0 "p"
OpName %bar "bar"
OpDecorate %_arr_int_uint_4 ArrayStride 4
OpDecorate %_arr_uint_uint_1 ArrayStride 4
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%_ptr_Workgroup__arr_int_uint_4 = OpTypePointer Workgroup %_arr_int_uint_4
%v = OpVariable %_ptr_Workgroup__arr_int_uint_4 Workgroup
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%11 = OpTypeFunction %int %_arr_uint_uint_1
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%20 = OpConstantNull %int
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%30 = OpConstantNull %uint
%33 = OpTypeFunction %int
%37 = OpConstantNull %_arr_uint_uint_1
%unused_entry_point = OpFunction %void None %7
%10 = OpLabel
OpReturn
OpFunctionEnd
%tint_workgroupUniformLoad_v_X = OpFunction %int None %11
%p = OpFunctionParameter %_arr_uint_uint_1
%16 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%21 = OpCompositeExtract %uint %p 0
%23 = OpAccessChain %_ptr_Workgroup_int %v %21
%24 = OpLoad %int %23
OpControlBarrier %uint_2 %uint_2 %uint_264
OpReturnValue %24
OpFunctionEnd
%foo_v_X = OpFunction %int None %11
%p_0 = OpFunctionParameter %_arr_uint_uint_1
%28 = OpLabel
%31 = OpCompositeExtract %uint %p_0 0
%32 = OpCompositeConstruct %_arr_uint_uint_1 %31
%29 = OpFunctionCall %int %tint_workgroupUniformLoad_v_X %32
OpReturnValue %29
OpFunctionEnd
%bar = OpFunction %int None %33
%35 = OpLabel
%36 = OpFunctionCall %int %foo_v_X %37
OpReturnValue %36
OpFunctionEnd