[−][src]Trait gfx_memory::Block
Block that owns a Segment
of the Memory
.
Implementor must ensure that there can't be any other blocks
with overlapping range (either through type system or safety notes for unsafe functions).
Provides access to safe memory range mapping.
Required methods
fn properties(&self) -> Properties
Get memory properties of the block.
fn memory(&self) -> &B::Memory
Get raw memory object.
fn segment(&self) -> Segment
Get memory segment owned by this block.
fn map<'a>(
&'a mut self,
device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
&'a mut self,
device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
Get mapping for the block segment. Memory writes to the region performed by device become available for the host.
Implementors
impl<B: Backend> Block<B> for DedicatedBlock<B>
[src]
fn properties(&self) -> Properties
[src]
fn memory(&self) -> &B::Memory
[src]
fn segment(&self) -> Segment
[src]
fn map<'a>(
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
[src]
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
impl<B: Backend> Block<B> for GeneralBlock<B>
[src]
fn properties(&self) -> Properties
[src]
fn memory(&self) -> &B::Memory
[src]
fn segment(&self) -> Segment
[src]
fn map<'a>(
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
[src]
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
impl<B: Backend> Block<B> for LinearBlock<B>
[src]
fn properties(&self) -> Properties
[src]
fn memory(&self) -> &B::Memory
[src]
fn segment(&self) -> Segment
[src]
fn map<'a>(
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>
[src]
&'a mut self,
_device: &B::Device,
segment: Segment
) -> Result<MappedRange<'a, B>, MapError>