pub struct Texture {
pub texture: Texture,
pub view: TextureView,
pub sampler: Sampler,
pub format: TextureFormat,
pub size: Extent3d,
}Expand description
Fields§
§texture: Texture§view: TextureView§sampler: Sampler§format: TextureFormat§size: Extent3dImplementations§
Source§impl Texture
impl Texture
pub fn slice<'ts, S: RangeBounds<u32>>( &'ts self, bound_x: S, bound_y: S, bound_z: S, ) -> TextureSlice<'ts>
Trait Implementations§
Source§impl BindGroupContent for Texture
impl BindGroupContent for Texture
fn entries(visibility: ShaderStages) -> Vec<BindGroupLayoutEntry>
fn resources<'br>(&'br self) -> Vec<BindingResource<'br>>
Source§impl ColorAttachment for Texture
impl ColorAttachment for Texture
fn color_attachment_clear(&self) -> RenderPassColorAttachment<'_>
fn color_attachment_clear_with( &self, color: Color, ) -> RenderPassColorAttachment<'_>
fn color_attachment_load(&self) -> RenderPassColorAttachment<'_>
Auto Trait Implementations§
impl !RefUnwindSafe for Texture
impl !UnwindSafe for Texture
impl Freeze for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
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> 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