[][src]Struct tm_sys::ffi::tm_gpu_picking_api

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

impl Clone for tm_gpu_picking_api[src]

impl Copy for tm_gpu_picking_api[src]

impl Debug for tm_gpu_picking_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.