pub trait UniformStorageAccess {
    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§

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

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

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

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

Implementors§