[][src]Struct makepad_render::MetalBuffer

pub struct MetalBuffer {
    pub last_written: usize,
    pub multi1: MultiMetalBuffer,
    pub multi2: MultiMetalBuffer,
    pub multi3: MultiMetalBuffer,
    pub multi4: MultiMetalBuffer,
    pub multi5: MultiMetalBuffer,
    pub multi6: MultiMetalBuffer,
    pub multi7: MultiMetalBuffer,
    pub multi8: MultiMetalBuffer,
    pub multi9: MultiMetalBuffer,
    pub multi10: MultiMetalBuffer,
}

Fields

last_written: usizemulti1: MultiMetalBuffermulti2: MultiMetalBuffermulti3: MultiMetalBuffermulti4: MultiMetalBuffermulti5: MultiMetalBuffermulti6: MultiMetalBuffermulti7: MultiMetalBuffermulti8: MultiMetalBuffermulti9: MultiMetalBuffermulti10: MultiMetalBuffer

Methods

impl MetalBuffer[src]

pub fn multi_buffer_read(&self) -> &MultiMetalBuffer[src]

pub fn multi_buffer_write(&mut self) -> &mut MultiMetalBuffer[src]

pub fn update_with_f32_data(&mut self, metal_cx: &MetalCx, data: &Vec<f32>)[src]

pub fn update_with_u32_data(&mut self, metal_cx: &MetalCx, data: &Vec<u32>)[src]

Trait Implementations

impl Clone for MetalBuffer[src]

impl Default for MetalBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.