Struct RenderGraphApi

Source
#[repr(C)]
pub struct RenderGraphApi {
Show 19 fields pub create: Option<unsafe extern "C" fn(sort_key: u64, static_sort_key: bool, allocator: *mut AllocatorI, shader_repository: *mut ShaderRepositoryO) -> *mut RenderGraphO>, pub destroy: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, res_buf: *mut RendererResourceCommandBufferO)>, pub sort_key: Option<unsafe extern "C" fn(graph: *const RenderGraphO, material_layer_name: StrhashT) -> u64>, pub register_gpu_image: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, image_desc: *const RendererImageDescT)>, pub register_gpu_buffer: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, buffer_desc: *const RendererBufferDescT)>, pub write_blackboard: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, key: StrhashT, value: RenderGraphBlackboardValue)>, pub read_blackboard: Option<unsafe extern "C" fn(graph: *const RenderGraphO, key: StrhashT, value: *mut RenderGraphBlackboardValue) -> bool>, pub setup_passes: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, render_module: *mut RenderGraphModuleO)>, pub validate_and_build: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, backend: *mut RendererBackendI, device_affinity_mask: u32) -> bool>, pub visualize: Option<unsafe extern "C" fn(graph: *const RenderGraphO, ta: *mut TempAllocatorI) -> *mut c_char>, pub execute: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, backend: *mut RendererBackendI, shader_context: *const ShaderSystemContextO, device_affinity_mask: u32) -> *mut AtomicCounterO>, pub resource_buffers: Option<unsafe extern "C" fn(graph: *const RenderGraphO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_resource_buffers: *mut u32)>, pub command_buffers: Option<unsafe extern "C" fn(graph: *const RenderGraphO, command_buffers: *mut *mut RendererCommandBufferO, num_command_buffers: *mut u32)>, pub viewers: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, viewers: *mut RenderGraphViewerT, num_viewers: *mut u32)>, pub backend_handle: Option<unsafe extern "C" fn(graph: *const RenderGraphO, graph_handle: RenderGraphHandleT) -> RendererHandleT>, pub data_requested: Option<unsafe extern "C" fn(graph: *const RenderGraphO, name: StrhashT) -> bool>, pub external_resource: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT) -> RenderGraphHandleT>, pub image_desc: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, handle: RenderGraphHandleT) -> *const RendererImageDescT>, pub buffer_desc: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, handle: RenderGraphHandleT) -> *const RendererBufferDescT>,
}

Fields§

§create: Option<unsafe extern "C" fn(sort_key: u64, static_sort_key: bool, allocator: *mut AllocatorI, shader_repository: *mut ShaderRepositoryO) -> *mut RenderGraphO>§destroy: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, res_buf: *mut RendererResourceCommandBufferO)>§sort_key: Option<unsafe extern "C" fn(graph: *const RenderGraphO, material_layer_name: StrhashT) -> u64>§register_gpu_image: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, image_desc: *const RendererImageDescT)>§register_gpu_buffer: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, buffer_desc: *const RendererBufferDescT)>§write_blackboard: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, key: StrhashT, value: RenderGraphBlackboardValue)>§read_blackboard: Option<unsafe extern "C" fn(graph: *const RenderGraphO, key: StrhashT, value: *mut RenderGraphBlackboardValue) -> bool>§setup_passes: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, render_module: *mut RenderGraphModuleO)>§validate_and_build: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, backend: *mut RendererBackendI, device_affinity_mask: u32) -> bool>§visualize: Option<unsafe extern "C" fn(graph: *const RenderGraphO, ta: *mut TempAllocatorI) -> *mut c_char>§execute: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, backend: *mut RendererBackendI, shader_context: *const ShaderSystemContextO, device_affinity_mask: u32) -> *mut AtomicCounterO>§resource_buffers: Option<unsafe extern "C" fn(graph: *const RenderGraphO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_resource_buffers: *mut u32)>§command_buffers: Option<unsafe extern "C" fn(graph: *const RenderGraphO, command_buffers: *mut *mut RendererCommandBufferO, num_command_buffers: *mut u32)>§viewers: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, viewers: *mut RenderGraphViewerT, num_viewers: *mut u32)>§backend_handle: Option<unsafe extern "C" fn(graph: *const RenderGraphO, graph_handle: RenderGraphHandleT) -> RendererHandleT>§data_requested: Option<unsafe extern "C" fn(graph: *const RenderGraphO, name: StrhashT) -> bool>§external_resource: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, name: StrhashT) -> RenderGraphHandleT>§image_desc: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, handle: RenderGraphHandleT) -> *const RendererImageDescT>§buffer_desc: Option<unsafe extern "C" fn(graph: *mut RenderGraphO, handle: RenderGraphHandleT) -> *const RendererBufferDescT>

Implementations§

Source§

impl RenderGraphApi

Source

pub unsafe fn create( &self, sort_key: u64, static_sort_key: bool, allocator: *mut AllocatorI, shader_repository: *mut ShaderRepositoryO, ) -> *mut RenderGraphO

Source

pub unsafe fn destroy( &self, graph: *mut RenderGraphO, res_buf: *mut RendererResourceCommandBufferO, )

Source

pub unsafe fn sort_key( &self, graph: *const RenderGraphO, material_layer_name: StrhashT, ) -> u64

Source

pub unsafe fn register_gpu_image( &self, graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, image_desc: *const RendererImageDescT, )

Source

pub unsafe fn register_gpu_buffer( &self, graph: *mut RenderGraphO, name: StrhashT, resource: RendererHandleT, resource_state: u32, buffer_desc: *const RendererBufferDescT, )

Source

pub unsafe fn write_blackboard( &self, graph: *mut RenderGraphO, key: StrhashT, value: RenderGraphBlackboardValue, )

Source

pub unsafe fn read_blackboard( &self, graph: *const RenderGraphO, key: StrhashT, value: *mut RenderGraphBlackboardValue, ) -> bool

Source

pub unsafe fn setup_passes( &self, graph: *mut RenderGraphO, render_module: *mut RenderGraphModuleO, )

Source

pub unsafe fn validate_and_build( &self, graph: *mut RenderGraphO, backend: *mut RendererBackendI, device_affinity_mask: u32, ) -> bool

Source

pub unsafe fn visualize( &self, graph: *const RenderGraphO, ta: *mut TempAllocatorI, ) -> *mut c_char

Source

pub unsafe fn execute( &self, graph: *mut RenderGraphO, backend: *mut RendererBackendI, shader_context: *const ShaderSystemContextO, device_affinity_mask: u32, ) -> *mut AtomicCounterO

Source

pub unsafe fn resource_buffers( &self, graph: *const RenderGraphO, resource_buffers: *mut *mut RendererResourceCommandBufferO, num_resource_buffers: *mut u32, )

Source

pub unsafe fn command_buffers( &self, graph: *const RenderGraphO, command_buffers: *mut *mut RendererCommandBufferO, num_command_buffers: *mut u32, )

Source

pub unsafe fn viewers( &self, graph: *mut RenderGraphO, viewers: *mut RenderGraphViewerT, num_viewers: *mut u32, )

Source

pub unsafe fn backend_handle( &self, graph: *const RenderGraphO, graph_handle: RenderGraphHandleT, ) -> RendererHandleT

Source

pub unsafe fn data_requested( &self, graph: *const RenderGraphO, name: StrhashT, ) -> bool

Source

pub unsafe fn external_resource( &self, graph: *mut RenderGraphO, name: StrhashT, ) -> RenderGraphHandleT

Source

pub unsafe fn image_desc( &self, graph: *mut RenderGraphO, handle: RenderGraphHandleT, ) -> *const RendererImageDescT

Source

pub unsafe fn buffer_desc( &self, graph: *mut RenderGraphO, handle: RenderGraphHandleT, ) -> *const RendererBufferDescT

Trait Implementations§

Source§

impl Api for RenderGraphApi

Source§

impl Clone for RenderGraphApi

Source§

fn clone(&self) -> RenderGraphApi

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 RenderGraphApi

Source§

fn default() -> RenderGraphApi

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

impl Copy for RenderGraphApi

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.