Struct nannou::ui::backend::glium::glium::texture::bindless::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]

Takes ownership of the given texture and makes it resident.

Unwraps the texture and restores it.

Methods from Deref<Target = TextureAny>

Returns the width of the texture.

Returns the height of the texture.

Returns the depth of the texture.

Returns the kind of texture.

Returns the dimensions of the texture.

Returns the array size of the texture.

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

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

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.

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

Determines the internal format of this texture.

Returns the number of mipmap levels of the texture.

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

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

Returns None if out of range.

Binds this texture and generates mipmaps.

Trait Implementations

impl DerefMut for ResidentTexture
[src]

Mutably dereferences the value.

impl Deref for ResidentTexture
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Drop for ResidentTexture
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations