mul¶
Description¶
Multiply.
Signature¶
/// Requires Capability Set 1: T mul<T>( T x, T y) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: vector<T, N> mul<T, int N>( vector<T, N> x, T y) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: vector<T, N> mul<T, int N>( T x, vector<T, N> y) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: matrix<T, N, M> mul<T, int N, int M>( matrix<T, N, M> x, T y) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: matrix<T, N, M> mul<T, int N, int M>( T x, matrix<T, N, M> y) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: T mul<T, int N>( vector<T, N> x, vector<T, N> y) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: T mul<T, int N>( vector<T, N> x, vector<T, N> y) where T : __BuiltinIntegerType; /// Requires Capability Set 2: vector<T, M> mul<T, int N, int M>( vector<T, N> left, matrix<T, N, M> right) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: vector<T, M> mul<T, int N, int M>( vector<T, N> left, matrix<T, N, M> right) where T : __BuiltinIntegerType; /// Requires Capability Set 2: vector<T, M> mul<T, int N, int M>( vector<T, N> left, matrix<T, N, M> right) where T : __BuiltinLogicalType; /// Requires Capability Set 2: vector<T, N> mul<T, int N, int M>( matrix<T, N, M> left, vector<T, M> right) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: vector<T, N> mul<T, int N, int M>( matrix<T, N, M> left, vector<T, M> right) where T : __BuiltinIntegerType; /// Requires Capability Set 2: vector<T, N> mul<T, int N, int M>( matrix<T, N, M> left, vector<T, M> right) where T : __BuiltinLogicalType; /// Requires Capability Set 2: matrix<T, R, C> mul<T, int R, int N, int C>( matrix<T, R, N> left, matrix<T, N, C> right) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: matrix<T, R, C> mul<T, int R, int N, int C>( matrix<T, R, N> left, matrix<T, N, C> right) where T : __BuiltinIntegerType; /// Requires Capability Set 2: matrix<T, R, C> mul<T, int R, int N, int C>( matrix<T, R, N> left, matrix<T, N, C> right) where T : __BuiltinLogicalType; DifferentialPair<vector<T, M>> mul<T, int N, int M>( DifferentialPair<vector<T, N>> left, DifferentialPair<matrix<T, N, M>> right) where T : __BuiltinFloatingPointType; DifferentialPair<vector<T, N>> mul<T, int N, int M>( DifferentialPair<matrix<T, N, M>> left, DifferentialPair<vector<T, M>> right) where T : __BuiltinFloatingPointType; DifferentialPair<matrix<T, R, C>> mul<T, int R, int N, int C>( DifferentialPair<matrix<T, R, N>> left, DifferentialPair<matrix<T, N, C>> right) where T : __BuiltinFloatingPointType; void mul<T, int R, int N, int C>( inout DifferentialPair<matrix<T, R, N>> left, inout DifferentialPair<matrix<T, N, C>> right, matrix<T, R, C> dOut) where T : __BuiltinFloatingPointType;
Generic Parameters¶
T: __BuiltinArithmeticType¶
N : int¶
M : int¶
T: __BuiltinFloatingPointType¶
T: __BuiltinIntegerType¶
T: __BuiltinLogicalType¶
R : int¶
C : int¶
Parameters¶
x : T¶
The first value.
y : T¶
The second value.
x : vector<T, N>¶
The first value.
y : vector<T, N>¶
The second value.
x : matrix<T, N, M>¶
The first value.
y : matrix<T, N, M>¶
The second value.
left : vector<T, N>¶
right : matrix<T, N, M>¶
left : matrix<T, N, M>¶
right : vector<T, M>¶
left : matrix<T, R, N>¶
right : matrix<T, N, C>¶
left : DifferentialPair<vector<T, N >>¶
right : DifferentialPair<matrix<T, N, M >>¶
left : DifferentialPair<matrix<T, N, M >>¶
right : DifferentialPair<vector<T, M >>¶
left : DifferentialPair<matrix<T, R, N >>¶
right : DifferentialPair<matrix<T, N, C >>¶
dOut : matrix<T, R, C>¶
Return value¶
Availability and Requirements¶
Capability Set 1¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
metal¶
Available in all stages.
spirv¶
Available in all stages.
llvm¶
Available in all stages.
Capability Set 2¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
metal¶
Available in all stages.
wgsl¶
Available in all stages.
spirv¶
Available in all stages.
llvm¶
Available in all stages.