Struct nannou::ui::backend::glium::glium::texture::ResidentTexture [] [src]

pub struct ResidentTexture { /* fields omitted */ }

A texture that is resident in video memory. This allows you to use bindless textures in your shaders.

Methods

impl ResidentTexture
[src]

[src]

Takes ownership of the given texture and makes it resident.

[src]

Unwraps the texture and restores it.

Methods from Deref<Target = TextureAny>

[src]

Returns the width of the texture.

[src]

Returns the height of the texture.

[src]

Returns the depth of the texture.

[src]

Returns the kind of texture.

[src]

Returns the dimensions of the texture.

[src]

Returns the array size of the texture.

[src]

Returns the number of samples of the texture if it is a multisampling texture.

[src]

Returns a structure that represents the first layer of the texture. All textures have a first layer.

[src]

Returns a structure that represents a specific layer of the texture.

Non-array textures have only one layer. The number of layers can be queried with get_array_size.

Returns None if out of range.

[src]

Returns the type of the texture (1D, 2D, 3D, etc.).

[src]

Determines the internal format of this texture.

[src]

Returns the number of mipmap levels of the texture.

[src]

Returns a structure that represents the main mipmap level of the texture.

[src]

Returns a structure that represents a specific mipmap of the texture.

Returns None if out of range.

[src]

Binds this texture and generates mipmaps.

Trait Implementations

impl DerefMut for ResidentTexture
[src]

[src]

Mutably dereferences the value.

impl Deref for ResidentTexture
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl Drop for ResidentTexture
[src]

[src]

Executes the destructor for this type. Read more