dawn-cmake/test/tint/statements/compound_assign/private.wgsl.expected.spvasm

52 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %a "a"
OpName %b "b"
OpName %c "c"
OpName %unused_entry_point "unused_entry_point"
OpName %foo "foo"
%int = OpTypeInt 32 1
%_ptr_Private_int = OpTypePointer Private %int
%4 = OpConstantNull %int
%a = OpVariable %_ptr_Private_int Private %4
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%9 = OpConstantNull %v4float
%b = OpVariable %_ptr_Private_v4float Private %9
%v2float = OpTypeVector %float 2
%mat2v2float = OpTypeMatrix %v2float 2
%_ptr_Private_mat2v2float = OpTypePointer Private %mat2v2float
%14 = OpConstantNull %mat2v2float
%c = OpVariable %_ptr_Private_mat2v2float Private %14
%void = OpTypeVoid
%15 = OpTypeFunction %void
%int_2 = OpConstant %int 2
%mat4v4float = OpTypeMatrix %v4float 4
%26 = OpConstantNull %mat4v4float
%float_2 = OpConstant %float 2
%unused_entry_point = OpFunction %void None %15
%18 = OpLabel
OpReturn
OpFunctionEnd
%foo = OpFunction %void None %15
%20 = OpLabel
%21 = OpLoad %int %a
%23 = OpSDiv %int %21 %int_2
OpStore %a %23
%24 = OpLoad %v4float %b
%27 = OpVectorTimesMatrix %v4float %24 %26
OpStore %b %27
%28 = OpLoad %mat2v2float %c
%30 = OpMatrixTimesScalar %mat2v2float %28 %float_2
OpStore %c %30
OpReturn
OpFunctionEnd