Struct RenderGraphSetupApi

Source
#[repr(C)]
pub struct RenderGraphSetupApi {
Show 17 fields pub external_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, name: StrhashT) -> RenderGraphHandleT>, pub image_desc: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT) -> *const RendererImageDescT>, pub buffer_desc: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT) -> *const RendererBufferDescT>, pub shader_repository: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO) -> *mut ShaderRepositoryO>, pub create_gpu_images: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, image_descs: *const RendererImageDescT, num_images: u32, handles: *mut RenderGraphHandleT)>, pub create_gpu_buffers: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, buffer_descs: *const RendererBufferDescT, num_buffers: u32, handles: *mut RenderGraphHandleT)>, pub read_gpu_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, wanted_resource_state: u32, subresource_view: *const RendererImageViewT)>, pub write_gpu_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, write_bind_flags: RenderGraphWriteBindFlag, wanted_resource_state: u32, load_op: u32, bind_slot: u32, blackboard_key: StrhashT, subresource_view: *const RendererImageViewT)>, pub set_active: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>, pub set_early_out: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>, pub set_output: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>, pub set_request_async_compute: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>, pub set_request_multi_gpu: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, device_affinity_mask: u32)>, pub expose_as_material_layer: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, layer_name: StrhashT)>, pub write_blackboard: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: RenderGraphBlackboardValue)>, pub read_blackboard: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: *mut RenderGraphBlackboardValue) -> bool>, pub request_data: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, name: StrhashT)>,
}

Fields§

§external_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, name: StrhashT) -> RenderGraphHandleT>§image_desc: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT) -> *const RendererImageDescT>§buffer_desc: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT) -> *const RendererBufferDescT>§shader_repository: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO) -> *mut ShaderRepositoryO>§create_gpu_images: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, image_descs: *const RendererImageDescT, num_images: u32, handles: *mut RenderGraphHandleT)>§create_gpu_buffers: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, buffer_descs: *const RendererBufferDescT, num_buffers: u32, handles: *mut RenderGraphHandleT)>§read_gpu_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, wanted_resource_state: u32, subresource_view: *const RendererImageViewT)>§write_gpu_resource: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, write_bind_flags: RenderGraphWriteBindFlag, wanted_resource_state: u32, load_op: u32, bind_slot: u32, blackboard_key: StrhashT, subresource_view: *const RendererImageViewT)>§set_active: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>§set_early_out: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>§set_output: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>§set_request_async_compute: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, state: bool)>§set_request_multi_gpu: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, device_affinity_mask: u32)>§expose_as_material_layer: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, layer_name: StrhashT)>§write_blackboard: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: RenderGraphBlackboardValue)>§read_blackboard: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: *mut RenderGraphBlackboardValue) -> bool>§request_data: Option<unsafe extern "C" fn(graph_setup: *mut RenderGraphSetupO, name: StrhashT)>

Implementations§

Source§

impl RenderGraphSetupApi

Source

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

Source

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

Source

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

Source

pub unsafe fn shader_repository( &self, graph_setup: *mut RenderGraphSetupO, ) -> *mut ShaderRepositoryO

Source

pub unsafe fn create_gpu_images( &self, graph_setup: *mut RenderGraphSetupO, image_descs: *const RendererImageDescT, num_images: u32, handles: *mut RenderGraphHandleT, )

Source

pub unsafe fn create_gpu_buffers( &self, graph_setup: *mut RenderGraphSetupO, buffer_descs: *const RendererBufferDescT, num_buffers: u32, handles: *mut RenderGraphHandleT, )

Source

pub unsafe fn read_gpu_resource( &self, graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, wanted_resource_state: u32, subresource_view: *const RendererImageViewT, )

Source

pub unsafe fn write_gpu_resource( &self, graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, write_bind_flags: RenderGraphWriteBindFlag, wanted_resource_state: u32, load_op: u32, bind_slot: u32, blackboard_key: StrhashT, subresource_view: *const RendererImageViewT, )

Source

pub unsafe fn set_active( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )

Source

pub unsafe fn set_early_out( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )

Source

pub unsafe fn set_output( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )

Source

pub unsafe fn set_request_async_compute( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )

Source

pub unsafe fn set_request_multi_gpu( &self, graph_setup: *mut RenderGraphSetupO, device_affinity_mask: u32, )

Source

pub unsafe fn expose_as_material_layer( &self, graph_setup: *mut RenderGraphSetupO, layer_name: StrhashT, )

Source

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

Source

pub unsafe fn read_blackboard( &self, graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: *mut RenderGraphBlackboardValue, ) -> bool

Source

pub unsafe fn request_data( &self, graph_setup: *mut RenderGraphSetupO, name: StrhashT, )

Trait Implementations§

Source§

impl Api for RenderGraphSetupApi

Source§

impl Clone for RenderGraphSetupApi

Source§

fn clone(&self) -> RenderGraphSetupApi

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 RenderGraphSetupApi

Source§

fn default() -> RenderGraphSetupApi

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

impl Copy for RenderGraphSetupApi

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.