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]
impl TextureMetadata
pub fn with_sampler(self, info: SamplerInfo) -> Self
[src]
pub fn with_sampler(self, info: SamplerInfo) -> Self
Sampler info
pub fn with_mip_levels(self, mip_levels: u8) -> Self
[src]
pub fn with_mip_levels(self, mip_levels: u8) -> Self
Mipmapping
pub fn with_size(self, width: u16, height: u16) -> Self
[src]
pub fn with_size(self, width: u16, height: u16) -> Self
Texture size
pub fn with_format(self, format: SurfaceType) -> Self
[src]
pub fn with_format(self, format: SurfaceType) -> Self
Surface type
pub fn with_channel(self, channel: ChannelType) -> Self
[src]
pub fn with_channel(self, channel: ChannelType) -> Self
Channel type
pub fn dynamic(self, d: bool) -> Self
[src]
pub fn dynamic(self, d: bool) -> Self
Texture is dynamic
Trait Implementations
impl Debug for TextureMetadata
[src]
impl Debug for TextureMetadata
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TextureMetadata
[src]
impl Clone for TextureMetadata
fn clone(&self) -> TextureMetadata
[src]
fn clone(&self) -> TextureMetadata
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for TextureMetadata
[src]
impl Default for TextureMetadata
Auto Trait Implementations
impl Send for TextureMetadata
impl Send for TextureMetadata
impl Sync for TextureMetadata
impl Sync for TextureMetadata