pub struct ShaderManager {Show 14 fields
pub compiler: ShaderCompilerMain,
pub post_config: FullPostProcessConfig,
pub extended_post: ExtendedPostProcessConfig,
pub anti_aliasing: AntiAliasingConfig,
pub quality_preset: String,
pub quality_presets: Vec<RenderQualityPreset>,
pub frame_executor: FrameGraphExecutor,
pub rt_manager: RenderTargetManager,
pub uniform_tracker: UniformTracker,
pub occlusion_cull: OcclusionCullSystem,
pub instance_batches: InstanceBatchManager,
pub render_state: RenderStateTracker,
pub error_reports: Vec<ShaderErrorReport>,
pub compile_stats: CompileStats,
}Fields§
§compiler: ShaderCompilerMain§post_config: FullPostProcessConfig§extended_post: ExtendedPostProcessConfig§anti_aliasing: AntiAliasingConfig§quality_preset: String§quality_presets: Vec<RenderQualityPreset>§frame_executor: FrameGraphExecutor§rt_manager: RenderTargetManager§uniform_tracker: UniformTracker§occlusion_cull: OcclusionCullSystem§instance_batches: InstanceBatchManager§render_state: RenderStateTracker§error_reports: Vec<ShaderErrorReport>§compile_stats: CompileStatsImplementations§
Source§impl ShaderManager
impl ShaderManager
pub fn new() -> Self
pub fn add_program(&mut self, prog: ShaderProgram) -> u32
pub fn add_material(&mut self, mat: Material) -> u32
pub fn begin_frame(&mut self)
pub fn set_quality(&mut self, preset_name: &str)
pub fn record_error(&mut self, report: ShaderErrorReport)
pub fn clear_errors(&mut self)
pub fn has_errors(&self) -> bool
pub fn error_count(&self) -> usize
pub fn program_count(&self) -> usize
pub fn compilation_summary(&self) -> String
pub fn stats(&self) -> ShaderCompilerStats
Trait Implementations§
Source§impl Clone for ShaderManager
impl Clone for ShaderManager
Source§impl Debug for ShaderManager
impl Debug for ShaderManager
Auto Trait Implementations§
impl Freeze for ShaderManager
impl RefUnwindSafe for ShaderManager
impl Send for ShaderManager
impl Sync for ShaderManager
impl Unpin for ShaderManager
impl UnsafeUnpin for ShaderManager
impl UnwindSafe for ShaderManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.