Export (0) Print
Expand All
abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize
0 out of 6 rated this helpful - Rate this topic

dot

Returns the dot product of two vectors.

ret dot(x, y)

 

Parameters

ItemDescription

x

[in] The first vector.

y

[in] The second vector.

 

Return Value

The dot product of the x parameter and the y parameter.

Type Description

Name Template Type Component Type Size
xvector float, int any
yvector float, int same dimensions(s) as input x
retscalar float, int 1

 

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 2 (DirectX HLSL) and higher shader modelsyes
Shader Model 1 (DirectX HLSL) yes

 

See also

Intrinsic Functions (DirectX HLSL)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.