DML_SCALAR_UNION union (directml.h)

A union of scalar types.

Syntax

union DML_SCALAR_UNION {
  BYTE   Bytes[8];
  INT8   Int8;
  UINT8  UInt8;
  INT16  Int16;
  UINT16 UInt16;
  INT32  Int32;
  UINT32 UInt32;
  INT64  Int64;
  UINT64 UInt64;
  FLOAT  Float32;
  DOUBLE Float64;
};

Members

Bytes[8]

An 8-byte array.

Int8

An 8-bit signed integer.

UInt8

An 8-bit unsigned integer.

Int16

A 16-bit signed integer.

UInt16

A 16-bit unsigned integer.

Int32

A 32-bit signed integer.

UInt32

A 32-bit unsigned integer.

Int64

A 64-bit signed integer.

UInt64

A 64-bit unsigned integer.

Float32

A single precision floating-point number.

Float64

A double precision floating-point number.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header directml.h