Enum amethyst_renderer::TextureFormat [−][src]
pub enum TextureFormat { Jpg, Png, Bmp, }
Aggregate texture format
Variants
Jpg
Jpeg
Png
Png
Bmp
Bmp
Trait Implementations
impl Debug for TextureFormat
[src]
impl Debug for TextureFormat
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 TextureFormat
[src]
impl Clone for TextureFormat
fn clone(&self) -> TextureFormat
[src]
fn clone(&self) -> TextureFormat
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 SimpleFormat<Texture> for TextureFormat
[src]
impl SimpleFormat<Texture> for TextureFormat
const 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 TextureFormat
impl Sync for TextureFormat
impl Sync for TextureFormat