Trait gfx::device::mapping::Builder [] [src]

pub trait Builder<'a, R: Resources> {
    type RawMapping: Raw;
    fn map_readable<T: Copy>(&'a mut self, Self::RawMapping, usize) -> Readable<T, R, Self>;
    fn map_writable<T: Copy>(&'a mut self, Self::RawMapping, usize) -> Writable<T, R, Self>;
    fn map_read_write<T: Copy>(&'a mut self, Self::RawMapping, usize) -> RW<T, R, Self>;
}

A service trait with methods for mapping already implemented. To be used by device back ends.

Associated Types

type RawMapping: Raw

Required Methods

fn map_readable<T: Copy>(&'a mut self, Self::RawMapping, usize) -> Readable<T, R, Self>

fn map_writable<T: Copy>(&'a mut self, Self::RawMapping, usize) -> Writable<T, R, Self>

fn map_read_write<T: Copy>(&'a mut self, Self::RawMapping, usize) -> RW<T, R, Self>

Implementors