Enum amethyst_renderer::TextureFormat [−][src]
pub enum TextureFormat {
Jpg,
Png,
Bmp,
}Aggregate texture format
Variants
JpgJpeg
PngPng
BmpBmp
Trait Implementations
impl Debug for TextureFormat[src]
impl Debug for TextureFormatfn 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 TextureFormat[src]
impl Clone for TextureFormatfn clone(&self) -> TextureFormat[src]
fn clone(&self) -> TextureFormatReturns 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 SimpleFormat<Texture> for TextureFormat[src]
impl SimpleFormat<Texture> for TextureFormatconst NAME: &'static str
NAME: &'static str = "TextureFormat"
A unique identifier for this format.
type Options = TextureMetadata
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(
&self,
bytes: Vec<u8>,
options: TextureMetadata
) -> Result<TextureData>[src]
fn import(
&self,
bytes: Vec<u8>,
options: TextureMetadata
) -> Result<TextureData>Produces asset data from given bytes.
Auto Trait Implementations
impl Send for TextureFormat
impl Send for TextureFormatimpl Sync for TextureFormat
impl Sync for TextureFormat