pub struct ResourceLookupSet { /* private fields */ }
Implementations§
Source§impl ResourceLookupSet
impl ResourceLookupSet
pub fn new( device_context: &RafxDeviceContext, max_frames_in_flight: u32, ) -> Self
pub fn device_context(&self) -> &RafxDeviceContext
pub fn on_frame_complete(&self) -> RafxResult<()>
pub fn destroy(&self) -> RafxResult<()>
pub fn metrics(&self) -> ResourceMetrics
pub fn get_or_create_shader_module_from_hashed_package( &self, package: &RafxHashedShaderPackage, ) -> RafxResult<ResourceArc<ShaderModuleResource>>
pub fn get_or_create_shader_module( &self, shader_package: &RafxShaderPackage, shader_package_hash: Option<RafxShaderPackageHash>, ) -> RafxResult<ResourceArc<ShaderModuleResource>>
pub fn get_or_create_sampler( &self, sampler_def: &RafxSamplerDef, ) -> RafxResult<ResourceArc<SamplerResource>>
pub fn get_or_create_shader( &self, shader_modules: &[ResourceArc<ShaderModuleResource>], entry_points: &[&RafxReflectedEntryPoint], ) -> RafxResult<ResourceArc<ShaderResource>>
pub fn get_or_create_root_signature( &self, shader_resources: &[ResourceArc<ShaderResource>], immutable_sampler_keys: &[RafxImmutableSamplerKey<'_>], immutable_sampler_resources: &[Vec<ResourceArc<SamplerResource>>], ) -> RafxResult<ResourceArc<RootSignatureResource>>
pub fn get_or_create_descriptor_set_layout( &self, root_signature: &ResourceArc<RootSignatureResource>, set_index: u32, descriptor_set_layout_def: &RafxReflectedDescriptorSetLayout, ) -> RafxResult<ResourceArc<DescriptorSetLayoutResource>>
pub fn get_or_create_material_pass( &self, shader: ResourceArc<ShaderResource>, root_signature: ResourceArc<RootSignatureResource>, descriptor_sets: Vec<ResourceArc<DescriptorSetLayoutResource>>, fixed_function_state: Arc<FixedFunctionState>, vertex_inputs: Arc<Vec<MaterialPassVertexInput>>, debug_name: Option<&str>, ) -> RafxResult<ResourceArc<MaterialPassResource>>
pub fn get_or_create_graphics_pipeline( &self, material_pass: &ResourceArc<MaterialPassResource>, render_target_meta: &GraphicsPipelineRenderTargetMeta, primitive_topology: RafxPrimitiveTopology, vertex_layout: &RafxVertexLayout, ) -> RafxResult<ResourceArc<GraphicsPipelineResource>>
pub fn get_or_create_compute_pipeline( &self, shader: &ResourceArc<ShaderResource>, root_signature: &ResourceArc<RootSignatureResource>, descriptor_set_layouts: Vec<ResourceArc<DescriptorSetLayoutResource>>, debug_name: Option<&str>, ) -> RafxResult<ResourceArc<ComputePipelineResource>>
pub fn insert_image(&self, image: RafxTexture) -> ResourceArc<ImageResource>
pub fn insert_buffer(&self, buffer: RafxBuffer) -> ResourceArc<BufferResource>
pub fn get_or_create_image_view( &self, image: &ResourceArc<ImageResource>, texture_bind_type: Option<RafxTextureBindType>, ) -> RafxResult<ResourceArc<ImageViewResource>>
Trait Implementations§
Source§impl Clone for ResourceLookupSet
impl Clone for ResourceLookupSet
Source§fn clone(&self) -> ResourceLookupSet
fn clone(&self) -> ResourceLookupSet
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ResourceLookupSet
impl RefUnwindSafe for ResourceLookupSet
impl Send for ResourceLookupSet
impl Sync for ResourceLookupSet
impl Unpin for ResourceLookupSet
impl UnwindSafe for ResourceLookupSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.