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 TextureMetadatapub fn with_sampler(self, info: SamplerInfo) -> Self[src]
pub fn with_sampler(self, info: SamplerInfo) -> SelfSampler info
pub fn with_mip_levels(self, mip_levels: u8) -> Self[src]
pub fn with_mip_levels(self, mip_levels: u8) -> SelfMipmapping
pub fn with_size(self, width: u16, height: u16) -> Self[src]
pub fn with_size(self, width: u16, height: u16) -> SelfTexture size
pub fn with_format(self, format: SurfaceType) -> Self[src]
pub fn with_format(self, format: SurfaceType) -> SelfSurface type
pub fn with_channel(self, channel: ChannelType) -> Self[src]
pub fn with_channel(self, channel: ChannelType) -> SelfChannel type
pub fn dynamic(self, d: bool) -> Self[src]
pub fn dynamic(self, d: bool) -> SelfTexture is dynamic
Trait Implementations
impl Debug for TextureMetadata[src]
impl Debug for TextureMetadatafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for TextureMetadata[src]
impl Clone for TextureMetadatafn clone(&self) -> TextureMetadata[src]
fn clone(&self) -> TextureMetadataReturns 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 TextureMetadataAuto Trait Implementations
impl Send for TextureMetadata
impl Send for TextureMetadataimpl Sync for TextureMetadata
impl Sync for TextureMetadata