#[repr(C)]pub struct tm_buffer_format_api {
pub encode_uncompressed_format: Option<unsafe extern "C" fn(u32, bool, u8, u8, u8, u8) -> u32>,
pub encode_compressed_format: Option<unsafe extern "C" fn(u32) -> u32>,
pub is_compressed: Option<unsafe extern "C" fn(u32) -> bool>,
pub decode_uncompressed: Option<unsafe extern "C" fn(u32, *mut u32, *mut bool, *mut u8, *mut u8, *mut u8, *mut u8) -> bool>,
pub decode_compression_format: Option<unsafe extern "C" fn(u32, *mut u32) -> bool>,
pub bits_per_element: Option<unsafe extern "C" fn(u32) -> u32>,
pub num_components: Option<unsafe extern "C" fn(u32) -> u32>,
pub human_readable: Option<unsafe extern "C" fn(u32, *mut tm_temp_allocator_i) -> *const i8>,
}Fields§
§encode_uncompressed_format: Option<unsafe extern "C" fn(u32, bool, u8, u8, u8, u8) -> u32>§encode_compressed_format: Option<unsafe extern "C" fn(u32) -> u32>§is_compressed: Option<unsafe extern "C" fn(u32) -> bool>§decode_uncompressed: Option<unsafe extern "C" fn(u32, *mut u32, *mut bool, *mut u8, *mut u8, *mut u8, *mut u8) -> bool>§decode_compression_format: Option<unsafe extern "C" fn(u32, *mut u32) -> bool>§bits_per_element: Option<unsafe extern "C" fn(u32) -> u32>§num_components: Option<unsafe extern "C" fn(u32) -> u32>§human_readable: Option<unsafe extern "C" fn(u32, *mut tm_temp_allocator_i) -> *const i8>Trait Implementations§
Source§impl Clone for tm_buffer_format_api
impl Clone for tm_buffer_format_api
Source§fn clone(&self) -> tm_buffer_format_api
fn clone(&self) -> tm_buffer_format_api
Returns a duplicate 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 moreimpl Copy for tm_buffer_format_api
Auto Trait Implementations§
impl Freeze for tm_buffer_format_api
impl RefUnwindSafe for tm_buffer_format_api
impl Send for tm_buffer_format_api
impl Sync for tm_buffer_format_api
impl Unpin for tm_buffer_format_api
impl UnwindSafe for tm_buffer_format_api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more