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<T, H, U, P> UniformStorageAccess for UniformStorage<T, H, U, P>
where U: Deref<Target = [u8]> + DerefMut, P: Deref<Target = [u8]> + DerefMut,