Struct machinery_api::plugins::renderer::RendererCommandBufferApi[][src]

#[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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.