Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the dot product of two vectors.
ret dot(x, y) |
---|
Parameters
Item | Description |
---|---|
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 |
---|---|---|---|
x | vector | float, int | any |
y | vector | float, int | same dimensions(s) as input x |
ret | scalar | float, int | 1 |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 2 (DirectX HLSL) and higher shader models | yes |
Shader Model 1 (DirectX HLSL) | yes |