RendererBackendI

Struct RendererBackendI 

Source
#[repr(C)]
pub struct RendererBackendI {
Show 24 fields pub inst: *mut RendererBackendO, pub create_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, window: *const WindowPlatformDataO, color_space: *const ColorSpaceDescT, device_affinity: u32) -> RendererSwapChainO>, pub destroy_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO)>, pub resize_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO, width: u32, height: u32)>, pub present_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO)>, pub swap_chain_resource: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO) -> RendererHandleT>, pub create_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>, pub submit_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>, pub destroy_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>, pub num_command_queues: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, queue_family: u8, device_affinity_mask: u32) -> u8>, pub supports_buffer: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, buffer: *const RendererBufferDescT, device_affinity_mask: u32) -> bool>, pub supports_image: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, image: *const RendererImageDescT, device_affinity_mask: u32) -> bool>, pub supported_color_spaces: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, window: *const WindowPlatformDataO, num_color_spaces: *mut u32, descs: *mut ColorSpaceDescT, formats: *mut u32, device_affinity_mask: u32) -> bool>, pub supports_ray_tracing: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity_mask: u32) -> bool>, pub create_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>, pub submit_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>, pub destroy_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>, pub frame_begin: Option<unsafe extern "C" fn(inst: *mut RendererBackendO)>, pub recycle_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO)>, pub read_complete: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, read_fence: u32, device_affinity_mask: u32) -> bool>, pub hashed_backend_name: Option<unsafe extern "C" fn(inst: *mut RendererBackendO) -> StrhashT>, pub statistics_memory_allocators: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, allocators: *mut RendererMemoryStatisticsAllocatorT) -> u32>, pub statistics_memory_allocations: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, allocator: u32, block: u32, allocators: *mut RendererMemoryStatisticsAllocationT) -> u32>, pub statistics: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, stats: *mut RendererStatisticsT)>,
}

Fields§

§inst: *mut RendererBackendO§create_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, window: *const WindowPlatformDataO, color_space: *const ColorSpaceDescT, device_affinity: u32) -> RendererSwapChainO>§destroy_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO)>§resize_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO, width: u32, height: u32)>§present_swap_chain: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO)>§swap_chain_resource: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, swap_chain: RendererSwapChainO) -> RendererHandleT>§create_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>§submit_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>§destroy_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, command_buffers: *mut *mut RendererCommandBufferO, num_buffers: u32)>§num_command_queues: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, queue_family: u8, device_affinity_mask: u32) -> u8>§supports_buffer: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, buffer: *const RendererBufferDescT, device_affinity_mask: u32) -> bool>§supports_image: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, image: *const RendererImageDescT, device_affinity_mask: u32) -> bool>§supported_color_spaces: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, window: *const WindowPlatformDataO, num_color_spaces: *mut u32, descs: *mut ColorSpaceDescT, formats: *mut u32, device_affinity_mask: u32) -> bool>§supports_ray_tracing: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity_mask: u32) -> bool>§create_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>§submit_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>§destroy_resource_command_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_buffers: u32)>§frame_begin: Option<unsafe extern "C" fn(inst: *mut RendererBackendO)>§recycle_buffers: Option<unsafe extern "C" fn(inst: *mut RendererBackendO)>§read_complete: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, read_fence: u32, device_affinity_mask: u32) -> bool>§hashed_backend_name: Option<unsafe extern "C" fn(inst: *mut RendererBackendO) -> StrhashT>§statistics_memory_allocators: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, allocators: *mut RendererMemoryStatisticsAllocatorT) -> u32>§statistics_memory_allocations: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, allocator: u32, block: u32, allocators: *mut RendererMemoryStatisticsAllocationT) -> u32>§statistics: Option<unsafe extern "C" fn(inst: *mut RendererBackendO, device_affinity: u32, stats: *mut RendererStatisticsT)>

Trait Implementations§

Source§

impl Clone for RendererBackendI

Source§

fn clone(&self) -> RendererBackendI

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 RendererBackendI

Source§

fn default() -> Self

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

impl Copy for RendererBackendI

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.