pub struct ShaderWarmUp {
pub shader: RuntimeShader,
pub target: ShaderTarget,
}Expand description
A runtime shader to compile before its first draw, at the target it will draw to, so a renderer’s background compiler builds the pipeline at start instead of inside the frame that first needs it.
Fields§
§shader: RuntimeShader§target: ShaderTargetTrait Implementations§
Source§impl Clone for ShaderWarmUp
impl Clone for ShaderWarmUp
Source§impl Debug for ShaderWarmUp
impl Debug for ShaderWarmUp
Source§impl PartialEq for ShaderWarmUp
impl PartialEq for ShaderWarmUp
impl StructuralPartialEq for ShaderWarmUp
Auto Trait Implementations§
impl Freeze for ShaderWarmUp
impl RefUnwindSafe for ShaderWarmUp
impl Send for ShaderWarmUp
impl Sync for ShaderWarmUp
impl Unpin for ShaderWarmUp
impl UnsafeUnpin for ShaderWarmUp
impl UnwindSafe for ShaderWarmUp
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