Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 3.27 KB

nf-directxmath-xmvectorsetbinaryconstant.md

File metadata and controls

100 lines (72 loc) · 3.27 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMVectorSetBinaryConstant
XMVectorSetBinaryConstant function (directxmath.h)
Creates a vector, each of whose components is either 0.0f or 1.0f.
Use DirectX..XMVectorSetBinaryConstant
XMVectorSetBinaryConstant
XMVectorSetBinaryConstant method [DirectX Math Support APIs]
dxmath.xmvectorsetbinaryconstant
dxmath\xmvectorsetbinaryconstant.htm
dxmath
M:Microsoft.directx_sdk.initialization.XMVectorSetBinaryConstant(uint32_t,uint32_t,uint32_t,uint32_t)
12/05/2018
Use DirectX..XMVectorSetBinaryConstant, XMVectorSetBinaryConstant, XMVectorSetBinaryConstant method [DirectX Math Support APIs], dxmath.xmvectorsetbinaryconstant
directxmath.h
Windows
Use DirectX.
Windows
19H1
XMVectorSetBinaryConstant
directxmath/XMVectorSetBinaryConstant
c++
APIRef
kbSyntax
COM
DirectXMath.h
XMVectorSetBinaryConstant

XMVectorSetBinaryConstant function

-description

Creates a vector, each of whose components is either 0.0f or 1.0f.

-parameters

-param C0 [in]

This parameter must be a number (an immediate value, either 0 or 1) and not a variable. If C0 is 0, the x-component of the returned vector will be 0.0f. Otherwise, the x-component will be 1.0f.

-param C1 [in]

This parameter must be a number (an immediate value, either 0 or 1) and not a variable. If C1 is 0, the y-component of the returned vector will be 0.0f. Otherwise, the y-component will be 1.0f.

-param C2 [in]

This parameter must be a number (an immediate value, either 0 or 1) and not a variable. If C2 is 0, the z-component of the returned vector will be 0.0f. Otherwise, the z-component will be 1.0f.

-param C3 [in]

This parameter must be a number (an immediate value, either 0 or 1) and not a variable. If C3 is 0, the w-component of the returned vector will be 0.0f. Otherwise, the w-component will be 1.0f.

-returns

Returns an XMVECTOR, each of whose components is either 0.0f or 1.0f.

-remarks

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

-see-also

Vector Initialization Functions

XMVectorSetInt

XMVectorSplatConstant

XMVectorSplatConstantInt