Struct amethyst_renderer::TextureMetadata
[−]
[src]
pub struct TextureMetadata { pub sampler: Option<SamplerInfo>, pub mip_levels: Option<u8>, pub size: Option<(u16, u16)>, pub dynamic: bool, pub format: Option<SurfaceType>, pub channel: Option<ChannelType>, }
Texture metadata, used while loading
Fields
sampler: Option<SamplerInfo>
Sampler info
mip_levels: Option<u8>
Mipmapping
size: Option<(u16, u16)>
Texture size
dynamic: bool
Dynamic texture
format: Option<SurfaceType>
Surface type
channel: Option<ChannelType>
Channel type
Methods
impl TextureMetadata
[src]
fn with_sampler(self, info: SamplerInfo) -> Self
[src]
Sampler info
fn with_mip_levels(self, mip_levels: u8) -> Self
[src]
Mipmapping
fn with_size(self, width: u16, height: u16) -> Self
[src]
Texture size
fn with_format(self, format: SurfaceType) -> Self
[src]
Surface type
fn with_channel(self, channel: ChannelType) -> Self
[src]
Channel type
fn dynamic(self, d: bool) -> Self
[src]
Texture is dynamic
Trait Implementations
impl Debug for TextureMetadata
[src]
impl Clone for TextureMetadata
[src]
fn clone(&self) -> TextureMetadata
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more