Struct bgfx_sys::bgfx_memory_s
source · #[repr(C)]pub struct bgfx_memory_s {
pub data: *mut u8,
pub size: u32,
}Expand description
Memory must be obtained by calling bgfx::alloc, bgfx::copy, or bgfx::makeRef.
@attention It is illegal to create this structure on stack and pass it to any bgfx API.
Fields§
§data: *mut u8§size: u32Pointer to data.
Trait Implementations§
source§impl Clone for bgfx_memory_s
impl Clone for bgfx_memory_s
source§fn clone(&self) -> bgfx_memory_s
fn clone(&self) -> bgfx_memory_s
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more