[][src]Trait wgpu_conveyor::AutomatedBufferSet

pub trait AutomatedBufferSet<'buf> {
    type Key: Hash + Eq + Clone;
    type Value;
    fn get(self) -> Self::Value;
fn value_to_key(value: &Self::Value) -> Self::Key; }

Values that can be used with BindGroupCache.

Implemented for &AutomatedBuffer and 1, 2, 3, and 4-tuples thereof.

Associated Types

type Key: Hash + Eq + Clone

Key type corresponding to this buffer type.

BufferCache1, BufferCache2, BufferCache3, and BufferCache4 are aliases for this value for the corresponding value, 2, 3, and 4-tuple.

type Value

Underlying buffer type.

Loading content...

Required methods

fn get(self) -> Self::Value

Get the buffer values

fn value_to_key(value: &Self::Value) -> Self::Key

Translate a value into a key

Loading content...

Implementations on Foreign Types

impl<'buf> AutomatedBufferSet<'buf> for (&'buf AutomatedBuffer,)[src]

type Key = BeltBufferId

type Value = Arc<IdBuffer>

impl<'buf> AutomatedBufferSet<'buf> for (&'buf AutomatedBuffer, &'buf AutomatedBuffer)[src]

type Key = (BeltBufferId, BeltBufferId)

type Value = (Arc<IdBuffer>, Arc<IdBuffer>)

impl<'buf> AutomatedBufferSet<'buf> for (&'buf AutomatedBuffer, &'buf AutomatedBuffer, &'buf AutomatedBuffer)[src]

impl<'buf> AutomatedBufferSet<'buf> for (&'buf AutomatedBuffer, &'buf AutomatedBuffer, &'buf AutomatedBuffer, &'buf AutomatedBuffer)[src]

Loading content...

Implementors

impl<'buf> AutomatedBufferSet<'buf> for &'buf AutomatedBuffer[src]

type Key = BeltBufferId

type Value = Arc<IdBuffer>

Loading content...