pub struct Texture { /* private fields */ }
Expand description

A container for a bindable texture.

Implementations

Create a Texture from its raw parts.

Create a new GPU texture width the specified config.

Write data to the texture.

  • data: 32-bit RGBA bitmap data.
  • width: The width of the source bitmap (data) in pixels.
  • height: The height of the source bitmap (data) in pixels.

The width of the texture in pixels.

The height of the texture in pixels.

The depth of the texture.

The size of the texture in pixels.

The underlying wgpu::Texture.

The wgpu::TextureView of the underlying texture.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.