[][src]Struct tm_sys::ffi::tm_renderer_command_buffer_api

#[repr(C)]pub struct tm_renderer_command_buffer_api {
    pub bind_render_pass: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, render_pass: *const tm_renderer_render_pass_bind_t)>,
    pub set_viewports: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, viewports: *const tm_renderer_set_viewports_t)>,
    pub set_scissor_rects: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, rects: *const tm_renderer_set_scissor_rects_t)>,
    pub draw_calls: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_keys: *const u64, draw_calls: *const tm_renderer_draw_call_info_t, shaders: *const tm_renderer_shader_info_t, num_draw_calls: u32)>,
    pub bind_queue: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, queue_bind: *const tm_renderer_queue_bind_t)>,
    pub begin_statistics_scope: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, category: *const c_char, name: *const c_char, flags: u32) -> u64>,
    pub end_statistics_scope: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, statistics_scope: u64)>,
    pub compute_dispatches: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_keys: *const u64, compute_dispatches: *const tm_renderer_compute_info_t, shaders: *const tm_renderer_shader_info_t, num_compute_dispatches: u32)>,
    pub transition_resources: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, barriers: *const tm_renderer_resource_barrier_t, num_barriers: u32)>,
    pub copy_image_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, copy_image: *const tm_renderer_copy_image_buffer_t)>,
    pub copy_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, copy_buffer: *const tm_renderer_copy_buffer_t)>,
    pub read_image_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, read_image: *const tm_renderer_read_image_buffer_t) -> u32>,
    pub read_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, read_buffer: *const tm_renderer_read_buffer_t) -> u32>,
    pub num_commands: Option<unsafe extern "C" fn(inst: *const tm_renderer_command_buffer_o) -> u32>,
    pub commands: Option<unsafe extern "C" fn(inst: *const tm_renderer_command_buffer_o) -> tm_renderer_commands_t>,
    pub user_data: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o) -> *mut c_void>,
    pub set_backend_allocator: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, memory_allocator: *mut tm_renderer_device_memory_allocator_i)>,
    pub append_buffers: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, buffers: *mut *mut tm_renderer_command_buffer_o, num_buffers: u32)>,
}

Fields

bind_render_pass: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, render_pass: *const tm_renderer_render_pass_bind_t)>set_viewports: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, viewports: *const tm_renderer_set_viewports_t)>set_scissor_rects: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, rects: *const tm_renderer_set_scissor_rects_t)>draw_calls: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_keys: *const u64, draw_calls: *const tm_renderer_draw_call_info_t, shaders: *const tm_renderer_shader_info_t, num_draw_calls: u32)>bind_queue: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, queue_bind: *const tm_renderer_queue_bind_t)>begin_statistics_scope: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, category: *const c_char, name: *const c_char, flags: u32) -> u64>end_statistics_scope: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, statistics_scope: u64)>compute_dispatches: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_keys: *const u64, compute_dispatches: *const tm_renderer_compute_info_t, shaders: *const tm_renderer_shader_info_t, num_compute_dispatches: u32)>transition_resources: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, barriers: *const tm_renderer_resource_barrier_t, num_barriers: u32)>copy_image_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, copy_image: *const tm_renderer_copy_image_buffer_t)>copy_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, copy_buffer: *const tm_renderer_copy_buffer_t)>read_image_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, read_image: *const tm_renderer_read_image_buffer_t) -> u32>read_buffer: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, sort_key: u64, read_buffer: *const tm_renderer_read_buffer_t) -> u32>num_commands: Option<unsafe extern "C" fn(inst: *const tm_renderer_command_buffer_o) -> u32>commands: Option<unsafe extern "C" fn(inst: *const tm_renderer_command_buffer_o) -> tm_renderer_commands_t>user_data: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o) -> *mut c_void>set_backend_allocator: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, memory_allocator: *mut tm_renderer_device_memory_allocator_i)>append_buffers: Option<unsafe extern "C" fn(inst: *mut tm_renderer_command_buffer_o, buffers: *mut *mut tm_renderer_command_buffer_o, num_buffers: u32)>

Trait Implementations

impl Clone for tm_renderer_command_buffer_api[src]

impl Copy for tm_renderer_command_buffer_api[src]

impl Debug for tm_renderer_command_buffer_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.