cross
Description
Cross product
Signature
vector<T, 3> cross<T>( vector<T, 3> left, vector<T, 3> right) where T : __BuiltinFloatingPointType; vector<T, 3> cross<T>( vector<T, 3> left, vector<T, 3> right) where T : __BuiltinIntegerType;
Generic Parameters
T: __BuiltinFloatingPointType
T: __BuiltinIntegerType
Parameters
left : vector<T, 3>
right : vector<T, 3>
Availability and Requirements
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.