#[repr(C)]pub struct BufferFormatApi {
pub encode_uncompressed_format: Option<unsafe extern "C" fn(component_type: BufferComponentType, sign: bool, bits_x: u8, bits_y: u8, bits_z: u8, bits_w: u8) -> u32>,
pub encode_compressed_format: Option<unsafe extern "C" fn(compression_type: BufferCompressionFormat) -> u32>,
pub is_compressed: Option<unsafe extern "C" fn(format: u32) -> bool>,
pub decode_uncompressed: Option<unsafe extern "C" fn(format: u32, component_type: *mut BufferComponentType, sign: *mut bool, bits_x: *mut u8, bits_y: *mut u8, bits_z: *mut u8, bits_w: *mut u8) -> bool>,
pub decode_compression_format: Option<unsafe extern "C" fn(format: u32, compression_format: *mut BufferCompressionFormat) -> bool>,
pub bits_per_element: Option<unsafe extern "C" fn(format: u32) -> u32>,
pub num_components: Option<unsafe extern "C" fn(format: u32) -> u32>,
pub human_readable: Option<unsafe extern "C" fn(format: u32, ta: *mut TempAllocatorI) -> *const c_char>,
}
Fields§
§encode_uncompressed_format: Option<unsafe extern "C" fn(component_type: BufferComponentType, sign: bool, bits_x: u8, bits_y: u8, bits_z: u8, bits_w: u8) -> u32>
§encode_compressed_format: Option<unsafe extern "C" fn(compression_type: BufferCompressionFormat) -> u32>
§is_compressed: Option<unsafe extern "C" fn(format: u32) -> bool>
§decode_uncompressed: Option<unsafe extern "C" fn(format: u32, component_type: *mut BufferComponentType, sign: *mut bool, bits_x: *mut u8, bits_y: *mut u8, bits_z: *mut u8, bits_w: *mut u8) -> bool>
§decode_compression_format: Option<unsafe extern "C" fn(format: u32, compression_format: *mut BufferCompressionFormat) -> bool>
§bits_per_element: Option<unsafe extern "C" fn(format: u32) -> u32>
§num_components: Option<unsafe extern "C" fn(format: u32) -> u32>
§human_readable: Option<unsafe extern "C" fn(format: u32, ta: *mut TempAllocatorI) -> *const c_char>
Implementations§
Source§impl BufferFormatApi
impl BufferFormatApi
pub unsafe fn encode_uncompressed_format( &self, component_type: BufferComponentType, sign: bool, bits_x: u8, bits_y: u8, bits_z: u8, bits_w: u8, ) -> u32
pub unsafe fn encode_compressed_format( &self, compression_type: BufferCompressionFormat, ) -> u32
pub unsafe fn is_compressed(&self, format: u32) -> bool
pub unsafe fn decode_uncompressed( &self, format: u32, component_type: *mut BufferComponentType, sign: *mut bool, bits_x: *mut u8, bits_y: *mut u8, bits_z: *mut u8, bits_w: *mut u8, ) -> bool
pub unsafe fn decode_compression_format( &self, format: u32, compression_format: *mut BufferCompressionFormat, ) -> bool
pub unsafe fn bits_per_element(&self, format: u32) -> u32
pub unsafe fn num_components(&self, format: u32) -> u32
pub unsafe fn human_readable( &self, format: u32, ta: *mut TempAllocatorI, ) -> *const c_char
Trait Implementations§
Source§impl Clone for BufferFormatApi
impl Clone for BufferFormatApi
Source§fn clone(&self) -> BufferFormatApi
fn clone(&self) -> BufferFormatApi
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 moreSource§impl Default for BufferFormatApi
impl Default for BufferFormatApi
Source§fn default() -> BufferFormatApi
fn default() -> BufferFormatApi
Returns the “default value” for a type. Read more
impl Copy for BufferFormatApi
Auto Trait Implementations§
impl Freeze for BufferFormatApi
impl RefUnwindSafe for BufferFormatApi
impl Send for BufferFormatApi
impl Sync for BufferFormatApi
impl Unpin for BufferFormatApi
impl UnwindSafe for BufferFormatApi
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