LLGL 0.05 Beta
Loading...
Searching...
No Matches
Data type utility functions.

Functions

LLGL_EXPORT std::uint32_t LLGL::DataTypeSize (const DataType dataType)
 Returns the size (in bytes) of the specified data type.
LLGL_EXPORT bool LLGL::IsSIntDataType (const DataType dataType)
 Determines if the argument refers to a signed integer data type.
LLGL_EXPORT bool LLGL::IsUIntDataType (const DataType dataType)
 Determines if the argument refers to an unsigned integer data type.
LLGL_EXPORT bool LLGL::IsFloatDataType (const DataType dataType)
 Determines if the argument refers to a floating-pointer data type.

Detailed Description

Function Documentation

◆ DataTypeSize()

LLGL_EXPORT std::uint32_t LLGL::DataTypeSize ( const DataType dataType)

Returns the size (in bytes) of the specified data type.

◆ IsFloatDataType()

LLGL_EXPORT bool LLGL::IsFloatDataType ( const DataType dataType)

Determines if the argument refers to a floating-pointer data type.

Returns
True if the specified data type equals one of the following enumeration entries: DataType::Float16, DataType::Float32, DataType::Float64.

◆ IsSIntDataType()

LLGL_EXPORT bool LLGL::IsSIntDataType ( const DataType dataType)

Determines if the argument refers to a signed integer data type.

Returns
True if the specified data type equals one of the following enumeration entries: DataType::Int8, DataType::Int16, DataType::Int32.

◆ IsUIntDataType()

LLGL_EXPORT bool LLGL::IsUIntDataType ( const DataType dataType)

Determines if the argument refers to an unsigned integer data type.

Returns
True if the specified data type equals one of the following enumeration entries: DataType::UInt8, DataType::UInt16, DataType::UInt32.