#[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
impl RenderGraphSetupApi
pub unsafe fn external_resource( &self, graph_setup: *mut RenderGraphSetupO, name: StrhashT, ) -> RenderGraphHandleT
pub unsafe fn image_desc( &self, graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, ) -> *const RendererImageDescT
pub unsafe fn buffer_desc( &self, graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, ) -> *const RendererBufferDescT
pub unsafe fn shader_repository( &self, graph_setup: *mut RenderGraphSetupO, ) -> *mut ShaderRepositoryO
pub unsafe fn create_gpu_images( &self, graph_setup: *mut RenderGraphSetupO, image_descs: *const RendererImageDescT, num_images: u32, handles: *mut RenderGraphHandleT, )
pub unsafe fn create_gpu_buffers( &self, graph_setup: *mut RenderGraphSetupO, buffer_descs: *const RendererBufferDescT, num_buffers: u32, handles: *mut RenderGraphHandleT, )
pub unsafe fn read_gpu_resource( &self, graph_setup: *mut RenderGraphSetupO, handle: RenderGraphHandleT, wanted_resource_state: u32, subresource_view: *const RendererImageViewT, )
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, )
pub unsafe fn set_active( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )
pub unsafe fn set_early_out( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )
pub unsafe fn set_output( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )
pub unsafe fn set_request_async_compute( &self, graph_setup: *mut RenderGraphSetupO, state: bool, )
pub unsafe fn set_request_multi_gpu( &self, graph_setup: *mut RenderGraphSetupO, device_affinity_mask: u32, )
pub unsafe fn expose_as_material_layer( &self, graph_setup: *mut RenderGraphSetupO, layer_name: StrhashT, )
pub unsafe fn write_blackboard( &self, graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: RenderGraphBlackboardValue, )
pub unsafe fn read_blackboard( &self, graph_setup: *mut RenderGraphSetupO, key: StrhashT, value: *mut RenderGraphBlackboardValue, ) -> bool
pub unsafe fn request_data( &self, graph_setup: *mut RenderGraphSetupO, name: StrhashT, )
Trait Implementations§
Source§impl Clone for RenderGraphSetupApi
impl Clone for RenderGraphSetupApi
Source§fn clone(&self) -> RenderGraphSetupApi
fn clone(&self) -> RenderGraphSetupApi
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 moreSource§impl Default for RenderGraphSetupApi
impl Default for RenderGraphSetupApi
Source§fn default() -> RenderGraphSetupApi
fn default() -> RenderGraphSetupApi
Returns the “default value” for a type. Read more
impl Copy for RenderGraphSetupApi
Auto Trait Implementations§
impl Freeze for RenderGraphSetupApi
impl RefUnwindSafe for RenderGraphSetupApi
impl Send for RenderGraphSetupApi
impl Sync for RenderGraphSetupApi
impl Unpin for RenderGraphSetupApi
impl UnwindSafe for RenderGraphSetupApi
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