Struct webrender::renderer::shade::LazilyCompiledShader
source · pub struct LazilyCompiledShader {
program: Option<Program>,
name: &'static str,
kind: ShaderKind,
cached_projection: Transform3D<f32>,
features: Vec<&'static str>,
}
Fields§
§program: Option<Program>
§name: &'static str
§kind: ShaderKind
§cached_projection: Transform3D<f32>
§features: Vec<&'static str>
Implementations§
source§impl LazilyCompiledShader
impl LazilyCompiledShader
pub(crate) fn new( kind: ShaderKind, name: &'static str, unsorted_features: &[&'static str], device: &mut Device, precache_flags: ShaderPrecacheFlags, shader_list: &ShaderFeatures, profile: &mut TransactionProfile, ) -> Result<Self, ShaderError>
pub fn bind( &mut self, device: &mut Device, projection: &Transform3D<f32>, texture_size: Option<DeviceSize>, renderer_errors: &mut Vec<RendererError>, profile: &mut TransactionProfile, )
fn get_internal( &mut self, device: &mut Device, precache_flags: ShaderPrecacheFlags, profile: &mut TransactionProfile, ) -> Result<&mut Program, ShaderError>
fn deinit(self, device: &mut Device)
Auto Trait Implementations§
impl Freeze for LazilyCompiledShader
impl RefUnwindSafe for LazilyCompiledShader
impl !Send for LazilyCompiledShader
impl !Sync for LazilyCompiledShader
impl Unpin for LazilyCompiledShader
impl UnwindSafe for LazilyCompiledShader
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more