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

A texture that covers all 6 sides of a cube.

Implementations

Creates a new texture cube map from the given cpu texture. The cpu texture must contain 6 images all with the width and height specified in the cpu texture. The images are used in the following order; right, left, top, bottom, front, back.

Creates a new texture cube map.

Fills the cube map texture with the given pixel data for the 6 images.

Errors

Returns an error if the length of the data for all 6 images does not correspond to the width, height and format specified at construction. It is therefore necessary to create a new texture if the texture size or format has changed.

Creates a new cube texture generated from the equirectangular texture given as input.

Writes whatever rendered in the render closure into the color texture at the cube map side given by the input parameter side. Before writing, the texture side is cleared based on the given clear state.

Writes whatever rendered in the render closure into the given mip level of the color texture at the cube map side given by the input parameter side. Before writing, the texture side is cleared based on the given clear state.

The width of this texture.

The height of this texture.

Whether this cube map contain HDR (high dynamic range) data.

Trait Implementations

Executes the destructor for this type. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more