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:directxpackedvector.XMU555.XMU555(uint8_t,uint8_t,uint8_t,bool) |
XMU555::XMU555(uint8_t,uint8_t,uint8_t,bool) (directxpackedvector.h) |
Initializes a new instance of XMU555 from three int8_t and one bool arguments. |
|
dxmath |
0895544c-7381-419d-9928-3ac3baa80920 |
05/06/2019 |
XMU555, XMU555 constructor [DirectX Math Support APIs], XMU555 constructor [DirectX Math Support APIs],XMU555 structure, XMU555 structure [DirectX Math Support APIs],XMU555 constructor, XMU555.XMU555, XMU555.XMU555(), XMU555.XMU555(uint8_t,uint8_t,uint8_t,bool), XMU555::XMU555, XMU555::XMU555(uint8_t,uint8_t,uint8_t,bool), dxmath.xmu555_ctor_1 |
directxpackedvector.h |
Windows |
DirectX::PackedVector |
Windows |
19H1 |
|
|
|
|
|
|
Initializes a new instance of XMU555 from three int8_t
and one bool
arguments.
This constructor initializes a new instance of XMU555 from three int8_t
(specifying x-, y-, and z-components) and one bool
(specifying a w-component) arguments.
Value of the x-coordinate of the vector, the x member of the new XMU555 instance.
The magnitude of this argument will be clamped to a range of [0, 31].
Value of the y-coordinate of the vector, the y member of the new XMU555 instance.
The magnitude of this argument will be clamped to a range of [0, 31].
Value of the z-coordinate of the vector, the z member of the new XMU555 instance.
The magnitude of this argument will be clamped to a range of [0, 31].
Value of the w-coordinate of the vector, the <wdcml:mark type="member">w</wdcml:mark> member of the new XMU555 instance.
The magnitude of this argument will be clamped to a range of [0, 1].
The following pseudocode demonstrates the operation of this constructor, which takes advantage of the union of the four components of the XMU555 vector with an instance of uint16_t in the definition of the structure:
XMU555 instance;
_x1=min( max( _x, 0 ), 31 );
_y1=min( max( _y, 0 ), 31 );
_z1=min( max( _z, 0 ), 31 );
_w1=min( max( _w, 0 ), 1 );
instance.v = (((uint16_t)_w1) ? 0x8000 : 0) |
(((uint16_t)_z1 & 0x1F) << 10) |
(((uint16_t)_y1 & 0x1F) << 5) |
(((uint16_t)_x1 & 0x1F));