dawn-cmake/test/tint/ptr_ref/load/param/private/i32.wgsl.expected.spvasm

32 lines
1.0 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 17
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %P "P"
OpName %func "func"
OpName %pointer "pointer"
OpName %main "main"
%int = OpTypeInt 32 1
%_ptr_Private_int = OpTypePointer Private %int
%4 = OpConstantNull %int
%P = OpVariable %_ptr_Private_int Private %4
%5 = OpTypeFunction %int %_ptr_Private_int
%void = OpTypeVoid
%11 = OpTypeFunction %void
%func = OpFunction %int None %5
%pointer = OpFunctionParameter %_ptr_Private_int
%8 = OpLabel
%10 = OpLoad %int %pointer
OpReturnValue %10
OpFunctionEnd
%main = OpFunction %void None %11
%14 = OpLabel
%15 = OpFunctionCall %int %func %P
OpReturn
OpFunctionEnd