Trait UniformStorageAccess

Source
pub trait UniformStorageAccess {
    // Required methods
    fn ubo_pointer(&self) -> *const u8;
    fn ubo_slice(&self) -> &[u8] ;
    fn push_pointer(&self) -> *const u8;
    fn push_slice(&self) -> &[u8] ;
}
Expand description

A trait to access the raw pointer to a backing uniform storage.

Required Methods§

Source

fn ubo_pointer(&self) -> *const u8

Get a pointer to the backing UBO storage. This pointer must be valid for the lifetime of the implementing struct.

Source

fn ubo_slice(&self) -> &[u8]

Get a pointer to the backing UBO storage. This pointer must be valid for the lifetime of the implementing struct.

Source

fn push_pointer(&self) -> *const u8

Get a pointer to the backing Push Constant buffer storage. This pointer must be valid for the lifetime of the implementing struct.

Source

fn push_slice(&self) -> &[u8]

Get a slice to the backing Push Constant buffer storage. This pointer must be valid for the lifetime of the implementing struct.

Implementors§

Source§

impl<D, T, H, U, P> UniformStorageAccess for UniformStorage<T, H, U, P, D>
where U: Deref<Target = [u8]> + DerefMut, P: Deref<Target = [u8]> + DerefMut,