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§
sourcefn ubo_pointer(&self) -> *const u8
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.
sourcefn ubo_slice(&self) -> &[u8] ⓘ
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.
sourcefn push_pointer(&self) -> *const u8
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.
sourcefn push_slice(&self) -> &[u8] ⓘ
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.