Implement the mul
HLSL Function
#99138
Labels
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
mul
clang builtin,mul
clang builtin withhlsl_intrinsics.h
mul
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
mul
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/mul.hlsl
clang/test/SemaHLSL/BuiltIns/mul-errors.hlsl
int_spv_mul
intrinsic inIntrinsicsSPIRV.td
mul
lowering and map it toint_spv_mul
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/mul.ll
DirectX
There were no DXIL opcodes found for
mul
.SPIR-V
OpFMul:
Description:
Floating-point multiplication of Operand 1 and Operand 2.
Result Type must be a scalar or vector of floating-point
type.
The types of Operand 1 and Operand 2 both must be the same as
Result Type.
Results are computed per component.
5
133
<id>
Result Type
Result <id>
<id>
Operand 1
<id>
Operand 2
Test Case(s)
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
Example 9
Example 10
Example 11
Example 12
Example 13
Example 14
Example 15
Example 16
Example 17
Example 18
Example 19
Example 20
Example 21
Example 22
Example 23
Example 24
Example 25
Example 26
Example 27
Example 28
Example 29
HLSL:
Multiplies x and y using matrix math. The inner dimension x-columns and y-rows must be equal.
Parameters
Return Value
The result of x times y. The result has the dimension x-rows x y-columns.
Type Description
There are 9 overloaded versions of this function; the overloaded versions handle the different cases for the types and sizes of the input arguments.
Minimum Shader Model
This function is supported in the following shader models.
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: