#[repr(C)]pub struct RendererCommandBufferApi {Show 19 fields
pub bind_render_pass: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, render_pass: *const RendererRenderPassBindT)>,
pub set_viewports: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, viewports: *const RendererSetViewportsT)>,
pub set_scissor_rects: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, rects: *const RendererSetScissorRectsT)>,
pub draw_calls: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, draw_calls: *const RendererDrawCallInfoT, shaders: *const RendererShaderInfoT, num_draw_calls: u32)>,
pub bind_queue: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, queue_bind: *const RendererQueueBindT)>,
pub begin_statistics_scope: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, 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 RendererCommandBufferO, sort_key: u64, statistics_scope: u64)>,
pub compute_dispatches: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, compute_dispatches: *const RendererComputeInfoT, shaders: *const RendererShaderInfoT, num_compute_dispatches: u32)>,
pub transition_resources: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, barriers: *const RendererResourceBarrierT, num_barriers: u32)>,
pub copy_image: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, copy_image: *const RendererCopyImageT)>,
pub copy_buffer: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, copy_buffer: *const RendererCopyBufferT)>,
pub trace_dispatches: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, trace_calls: *const RendererTraceCallT, num_trace_calls: u32)>,
pub read_image: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, read_image: *const RendererReadImageT) -> u32>,
pub read_buffer: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, read_buffer: *const RendererReadBufferT) -> u32>,
pub num_commands: Option<unsafe extern "C" fn(inst: *const RendererCommandBufferO) -> u32>,
pub commands: Option<unsafe extern "C" fn(inst: *const RendererCommandBufferO) -> RendererCommandsT>,
pub user_data: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO) -> *mut c_void>,
pub set_backend_allocator: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, memory_allocator: *mut RendererDeviceMemoryAllocatorI)>,
pub append_buffers: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>,
}
Fields§
§bind_render_pass: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, render_pass: *const RendererRenderPassBindT)>
§set_viewports: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, viewports: *const RendererSetViewportsT)>
§set_scissor_rects: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, rects: *const RendererSetScissorRectsT)>
§draw_calls: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, draw_calls: *const RendererDrawCallInfoT, shaders: *const RendererShaderInfoT, num_draw_calls: u32)>
§bind_queue: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, queue_bind: *const RendererQueueBindT)>
§begin_statistics_scope: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, category: *const c_char, name: *const c_char, flags: u32) -> u64>
§end_statistics_scope: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, statistics_scope: u64)>
§compute_dispatches: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, compute_dispatches: *const RendererComputeInfoT, shaders: *const RendererShaderInfoT, num_compute_dispatches: u32)>
§transition_resources: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, barriers: *const RendererResourceBarrierT, num_barriers: u32)>
§copy_image: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, copy_image: *const RendererCopyImageT)>
§copy_buffer: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, copy_buffer: *const RendererCopyBufferT)>
§trace_dispatches: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_keys: *const u64, trace_calls: *const RendererTraceCallT, num_trace_calls: u32)>
§read_image: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, read_image: *const RendererReadImageT) -> u32>
§read_buffer: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, sort_key: u64, read_buffer: *const RendererReadBufferT) -> u32>
§num_commands: Option<unsafe extern "C" fn(inst: *const RendererCommandBufferO) -> u32>
§commands: Option<unsafe extern "C" fn(inst: *const RendererCommandBufferO) -> RendererCommandsT>
§user_data: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO) -> *mut c_void>
§set_backend_allocator: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, memory_allocator: *mut RendererDeviceMemoryAllocatorI)>
§append_buffers: Option<unsafe extern "C" fn(inst: *mut RendererCommandBufferO, buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>
Implementations§
Source§impl RendererCommandBufferApi
impl RendererCommandBufferApi
pub unsafe fn bind_render_pass( &self, inst: *mut RendererCommandBufferO, sort_key: u64, render_pass: *const RendererRenderPassBindT, )
pub unsafe fn set_viewports( &self, inst: *mut RendererCommandBufferO, sort_key: u64, viewports: *const RendererSetViewportsT, )
pub unsafe fn set_scissor_rects( &self, inst: *mut RendererCommandBufferO, sort_key: u64, rects: *const RendererSetScissorRectsT, )
pub unsafe fn draw_calls( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, draw_calls: *const RendererDrawCallInfoT, shaders: *const RendererShaderInfoT, num_draw_calls: u32, )
pub unsafe fn bind_queue( &self, inst: *mut RendererCommandBufferO, sort_key: u64, queue_bind: *const RendererQueueBindT, )
pub unsafe fn begin_statistics_scope( &self, inst: *mut RendererCommandBufferO, sort_key: u64, category: *const c_char, name: *const c_char, flags: u32, ) -> u64
pub unsafe fn end_statistics_scope( &self, inst: *mut RendererCommandBufferO, sort_key: u64, statistics_scope: u64, )
pub unsafe fn compute_dispatches( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, compute_dispatches: *const RendererComputeInfoT, shaders: *const RendererShaderInfoT, num_compute_dispatches: u32, )
pub unsafe fn transition_resources( &self, inst: *mut RendererCommandBufferO, sort_key: u64, barriers: *const RendererResourceBarrierT, num_barriers: u32, )
pub unsafe fn copy_image( &self, inst: *mut RendererCommandBufferO, sort_key: u64, copy_image: *const RendererCopyImageT, )
pub unsafe fn copy_buffer( &self, inst: *mut RendererCommandBufferO, sort_key: u64, copy_buffer: *const RendererCopyBufferT, )
pub unsafe fn trace_dispatches( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, trace_calls: *const RendererTraceCallT, num_trace_calls: u32, )
pub unsafe fn read_image( &self, inst: *mut RendererCommandBufferO, sort_key: u64, read_image: *const RendererReadImageT, ) -> u32
pub unsafe fn read_buffer( &self, inst: *mut RendererCommandBufferO, sort_key: u64, read_buffer: *const RendererReadBufferT, ) -> u32
pub unsafe fn num_commands(&self, inst: *const RendererCommandBufferO) -> u32
pub unsafe fn commands( &self, inst: *const RendererCommandBufferO, ) -> RendererCommandsT
pub unsafe fn user_data(&self, inst: *mut RendererCommandBufferO) -> *mut c_void
pub unsafe fn set_backend_allocator( &self, inst: *mut RendererCommandBufferO, memory_allocator: *mut RendererDeviceMemoryAllocatorI, )
pub unsafe fn append_buffers( &self, inst: *mut RendererCommandBufferO, buffers: *mut *mut RendererCommandBufferO, num_buffers: u32, )
Trait Implementations§
Source§impl Api for RendererCommandBufferApi
impl Api for RendererCommandBufferApi
Source§impl Clone for RendererCommandBufferApi
impl Clone for RendererCommandBufferApi
Source§fn clone(&self) -> RendererCommandBufferApi
fn clone(&self) -> RendererCommandBufferApi
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 RendererCommandBufferApi
impl Default for RendererCommandBufferApi
Source§fn default() -> RendererCommandBufferApi
fn default() -> RendererCommandBufferApi
Returns the “default value” for a type. Read more
impl Copy for RendererCommandBufferApi
Auto Trait Implementations§
impl Freeze for RendererCommandBufferApi
impl RefUnwindSafe for RendererCommandBufferApi
impl Send for RendererCommandBufferApi
impl Sync for RendererCommandBufferApi
impl Unpin for RendererCommandBufferApi
impl UnwindSafe for RendererCommandBufferApi
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