pub struct MatcapTextureSet {
pub tex_r: TextureView,
pub tex_g: TextureView,
pub tex_b: TextureView,
pub tex_k: TextureView,
pub sampler: Sampler,
pub bind_group: BindGroup,
}Expand description
Pre-built GPU resources for a matcap material.
Each material has 4 texture views (R, G, B, K channels) and a shared sampler. For blendable materials, each channel is a different texture. For static materials, all 4 views point to the same single texture.
Fields§
§tex_r: TextureViewTexture view for the R channel.
tex_g: TextureViewTexture view for the G channel.
tex_b: TextureViewTexture view for the B channel.
tex_k: TextureViewTexture view for the K (remainder) channel.
sampler: SamplerLinear filtering sampler.
bind_group: BindGroupPre-built bind group for this material.
Auto Trait Implementations§
impl Freeze for MatcapTextureSet
impl !RefUnwindSafe for MatcapTextureSet
impl Send for MatcapTextureSet
impl Sync for MatcapTextureSet
impl Unpin for MatcapTextureSet
impl !UnwindSafe for MatcapTextureSet
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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