nCine::RHI::RSX::RsxVram::Block struct

A GPU-visible allocation: its CPU-side base address and the offset the RSX addresses it by.

Public functions

auto IsValid() const -> bool
auto GetGcmLocation() const -> std::uint8_t
Returns the GCM_LOCATION_RSX / GCM_LOCATION_CELL value the RSX commands expect.

Public variables

void* Base
Base address of the block, or nullptr when the allocation failed.
std::uint32_t Offset
Offset of the block within its location's address window, as the RSX commands take it.
std::uint32_t Size
Number of bytes reserved (the request rounded up to the requested alignment).
Location Where
Address window Offset is relative to.