pub struct EngineShaders {
pub strip: ShaderId,
pub clear: ShaderId,
pub copy: ShaderId,
pub filter: ShaderId,
}Expand description
The engine’s compiled shader modules, by id.
Registered once at start-up into the ShaderLibrary a
PipelineCache is built over; a RenderPipelineDesc then names its
program by id rather than by source.
Fields§
§strip: ShaderIdThe sparse-strip rasterizer, shared by all four strip variants.
clear: ShaderIdRegion and fullscreen clears.
copy: ShaderIdRectangular region copies.
filter: ShaderIdOne pass of a layer filter’s sequence.
Implementations§
Source§impl EngineShaders
impl EngineShaders
Sourcepub fn register(library: &mut ShaderLibrary, device: &Device) -> Self
pub fn register(library: &mut ShaderLibrary, device: &Device) -> Self
Compiles every module in shader_src::MODULES into library and
returns their ids.
Insertion is idempotent per name, so calling this twice against the same library returns the same ids without recompiling.
Trait Implementations§
Source§impl Clone for EngineShaders
impl Clone for EngineShaders
impl Copy for EngineShaders
Source§impl Debug for EngineShaders
impl Debug for EngineShaders
impl Eq for EngineShaders
Source§impl PartialEq for EngineShaders
impl PartialEq for EngineShaders
impl StructuralPartialEq for EngineShaders
Auto Trait Implementations§
impl Freeze for EngineShaders
impl RefUnwindSafe for EngineShaders
impl Send for EngineShaders
impl Sync for EngineShaders
impl Unpin for EngineShaders
impl UnsafeUnpin for EngineShaders
impl UnwindSafe for EngineShaders
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.