Struct MemoryInfo

Struct Documentation

struct MemoryInfo

Stores properties of the memory to be used when we distinguish between different types of memory on e.g. different devices with different characteristics.

Public Functions

MemoryInfo(const MemoryInfo&) noexcept = default
MemoryInfo(MemoryInfo&&) noexcept = default
MemoryInfo &operator=(const MemoryInfo&) noexcept = default
MemoryInfo &operator=(MemoryInfo&&) noexcept = default
explicit MemoryInfo(uint32_t deviceId = DEFAULT_DEVICE_ID, uint32_t memoryType = DEFAULT_MEMORY_TYPE) noexcept

creates a MemoryInfo object

Parameters:
  • deviceId[in] specifies the device where the memory is located

  • memoryType[in] encodes additional information about the memory

bool operator==(const MemoryInfo &rhs) const noexcept

comparison operator

Parameters:

rhs[in] the right hand side of the comparison

Public Members

uint32_t deviceId = {DEFAULT_DEVICE_ID}
uint32_t memoryType = {DEFAULT_MEMORY_TYPE}

Public Static Attributes

static constexpr uint32_t DEFAULT_DEVICE_ID = {0U}
static constexpr uint32_t DEFAULT_MEMORY_TYPE = {0U}