Struct RendererCommandBufferApi

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

Source

pub unsafe fn bind_render_pass( &self, inst: *mut RendererCommandBufferO, sort_key: u64, render_pass: *const RendererRenderPassBindT, )

Source

pub unsafe fn set_viewports( &self, inst: *mut RendererCommandBufferO, sort_key: u64, viewports: *const RendererSetViewportsT, )

Source

pub unsafe fn set_scissor_rects( &self, inst: *mut RendererCommandBufferO, sort_key: u64, rects: *const RendererSetScissorRectsT, )

Source

pub unsafe fn draw_calls( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, draw_calls: *const RendererDrawCallInfoT, shaders: *const RendererShaderInfoT, num_draw_calls: u32, )

Source

pub unsafe fn bind_queue( &self, inst: *mut RendererCommandBufferO, sort_key: u64, queue_bind: *const RendererQueueBindT, )

Source

pub unsafe fn begin_statistics_scope( &self, inst: *mut RendererCommandBufferO, sort_key: u64, category: *const c_char, name: *const c_char, flags: u32, ) -> u64

Source

pub unsafe fn end_statistics_scope( &self, inst: *mut RendererCommandBufferO, sort_key: u64, statistics_scope: u64, )

Source

pub unsafe fn compute_dispatches( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, compute_dispatches: *const RendererComputeInfoT, shaders: *const RendererShaderInfoT, num_compute_dispatches: u32, )

Source

pub unsafe fn transition_resources( &self, inst: *mut RendererCommandBufferO, sort_key: u64, barriers: *const RendererResourceBarrierT, num_barriers: u32, )

Source

pub unsafe fn copy_image( &self, inst: *mut RendererCommandBufferO, sort_key: u64, copy_image: *const RendererCopyImageT, )

Source

pub unsafe fn copy_buffer( &self, inst: *mut RendererCommandBufferO, sort_key: u64, copy_buffer: *const RendererCopyBufferT, )

Source

pub unsafe fn trace_dispatches( &self, inst: *mut RendererCommandBufferO, sort_keys: *const u64, trace_calls: *const RendererTraceCallT, num_trace_calls: u32, )

Source

pub unsafe fn read_image( &self, inst: *mut RendererCommandBufferO, sort_key: u64, read_image: *const RendererReadImageT, ) -> u32

Source

pub unsafe fn read_buffer( &self, inst: *mut RendererCommandBufferO, sort_key: u64, read_buffer: *const RendererReadBufferT, ) -> u32

Source

pub unsafe fn num_commands(&self, inst: *const RendererCommandBufferO) -> u32

Source

pub unsafe fn commands( &self, inst: *const RendererCommandBufferO, ) -> RendererCommandsT

Source

pub unsafe fn user_data(&self, inst: *mut RendererCommandBufferO) -> *mut c_void

Source

pub unsafe fn set_backend_allocator( &self, inst: *mut RendererCommandBufferO, memory_allocator: *mut RendererDeviceMemoryAllocatorI, )

Source

pub unsafe fn append_buffers( &self, inst: *mut RendererCommandBufferO, buffers: *mut *mut RendererCommandBufferO, num_buffers: u32, )

Trait Implementations§

Source§

impl Api for RendererCommandBufferApi

Source§

impl Clone for RendererCommandBufferApi

Source§

fn clone(&self) -> RendererCommandBufferApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for RendererCommandBufferApi

Source§

fn default() -> RendererCommandBufferApi

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

impl Copy for RendererCommandBufferApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.