|
|
const std::shared_ptr< DeviceMTL > | owningDevice |
| |
|
MutableSpan | data |
| |
|
uint32_t | stride = 0 |
| |
|
uint32_t | mode |
| |
|
uint32_t | globalIndex = 0 |
| |
◆ getBufferSize()
| decltype(BufferConfig::nElements) RGL::BufferMTL::getBufferSize |
( |
| ) |
const |
|
finalvirtual |
◆ GetMappedDataPtr()
| void * RGL::BufferMTL::GetMappedDataPtr |
( |
| ) |
|
|
finalvirtual |
◆ GetReadonlyBindlessGPUHandle()
| uint32_t RGL::BufferMTL::GetReadonlyBindlessGPUHandle |
( |
| ) |
const |
|
finalvirtual |
◆ GetReadwriteBindlessGPUHandle()
| uint32_t RGL::BufferMTL::GetReadwriteBindlessGPUHandle |
( |
| ) |
const |
|
finalvirtual |
◆ MapMemory()
| void RGL::BufferMTL::MapMemory |
( |
| ) |
|
|
virtual |
Map system RAM for updating this buffer.
Implements RGL::IBuffer.
◆ SetBufferData()
| void RGL::BufferMTL::SetBufferData |
( |
untyped_span |
data, |
|
|
decltype(BufferConfig::nElements) |
offset = 0 |
|
) |
| |
|
virtual |
Set the contents of this buffer. Intended to be used with VertexBuffers or other data that changes infrequently or never.
- Parameters
-
| newData | the data to write into the buffer. |
Implements RGL::IBuffer.
◆ SignalRangeChanged()
| void RGL::BufferMTL::SignalRangeChanged |
( |
const Range & |
| ) |
|
|
finalvirtual |
◆ UnmapMemory()
| void RGL::BufferMTL::UnmapMemory |
( |
| ) |
|
|
virtual |
Unmap system RAM for updating this buffer.
Implements RGL::IBuffer.
◆ UpdateBufferData()
| void RGL::BufferMTL::UpdateBufferData |
( |
untyped_span |
newData, |
|
|
decltype(BufferConfig::nElements) |
offset = 0 |
|
) |
| |
|
virtual |
Update the contents of this buffer. If memory is not mapped, it will become mapped. The memory remains mapped. Intended to be used with UniformBuffers or other data that changes frequently.
- Parameters
-
| newData | the data to write into the buffer. |
Implements RGL::IBuffer.
The documentation for this struct was generated from the following file: