#[repr(C)]pub struct tm_gpu_picking_api {
pub create: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, res_buf: *mut tm_renderer_resource_command_buffer_o, picking_system: *mut tm_shader_system_o, clear_picking_buffer_shader: *mut tm_shader_o) -> *mut tm_gpu_picking_o>,
pub destroy: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, res_buf: *mut tm_renderer_resource_command_buffer_o)>,
pub update_cpu: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, rb: *mut tm_renderer_backend_i, device_affinity_mask: u32, activate_system: bool, cursor_position: tm_vec2_t, opacity_threshold: f32, result: *mut u64) -> bool>,
pub update_gpu: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, context: *mut tm_shader_system_context_o, res_buf: *mut tm_renderer_resource_command_buffer_o, cmd_buf: *mut tm_renderer_command_buffer_o, device_affinity_mask: u32, resolution_scale: f32)>,
}Fields§
§create: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, res_buf: *mut tm_renderer_resource_command_buffer_o, picking_system: *mut tm_shader_system_o, clear_picking_buffer_shader: *mut tm_shader_o) -> *mut tm_gpu_picking_o>§destroy: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, res_buf: *mut tm_renderer_resource_command_buffer_o)>§update_cpu: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, rb: *mut tm_renderer_backend_i, device_affinity_mask: u32, activate_system: bool, cursor_position: tm_vec2_t, opacity_threshold: f32, result: *mut u64) -> bool>§update_gpu: Option<unsafe extern "C" fn(inst: *mut tm_gpu_picking_o, context: *mut tm_shader_system_context_o, res_buf: *mut tm_renderer_resource_command_buffer_o, cmd_buf: *mut tm_renderer_command_buffer_o, device_affinity_mask: u32, resolution_scale: f32)>Trait Implementations§
Source§impl Clone for tm_gpu_picking_api
impl Clone for tm_gpu_picking_api
Source§fn clone(&self) -> tm_gpu_picking_api
fn clone(&self) -> tm_gpu_picking_api
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 moreimpl Copy for tm_gpu_picking_api
Auto Trait Implementations§
impl Freeze for tm_gpu_picking_api
impl RefUnwindSafe for tm_gpu_picking_api
impl Send for tm_gpu_picking_api
impl Sync for tm_gpu_picking_api
impl Unpin for tm_gpu_picking_api
impl UnwindSafe for tm_gpu_picking_api
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