[][src]Struct tm_sys::ffi::tm_buffer_format_api

#[repr(C)]pub struct tm_buffer_format_api {
    pub encode_uncompressed_format: Option<unsafe extern "C" fn(component_type: u32, 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: u32) -> 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 u32, 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 u32) -> 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 tm_temp_allocator_i) -> *const c_char>,
}

Fields

encode_uncompressed_format: Option<unsafe extern "C" fn(component_type: u32, 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: u32) -> u32>is_compressed: Option<unsafe extern "C" fn(format: u32) -> bool>decode_uncompressed: Option<unsafe extern "C" fn(format: u32, component_type: *mut u32, 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 u32) -> 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 tm_temp_allocator_i) -> *const c_char>

Trait Implementations

impl Clone for tm_buffer_format_api[src]

impl Copy for tm_buffer_format_api[src]

impl Debug for tm_buffer_format_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.