Enum allegro::shader::ShaderPlatform
source · #[repr(u32)]
pub enum ShaderPlatform {
Auto,
GLSL,
HLSL,
}
Expand description
Shader platform.
Variants
Auto
Automatically detect the platform, only appropriate for shader creation.
GLSL
HLSL
Implementations
sourceimpl ShaderPlatform
impl ShaderPlatform
pub fn from_allegro(platform: ALLEGRO_SHADER_PLATFORM) -> ShaderPlatform
Trait Implementations
sourceimpl Clone for ShaderPlatform
impl Clone for ShaderPlatform
sourcefn clone(&self) -> ShaderPlatform
fn clone(&self) -> ShaderPlatform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ShaderPlatform
impl Debug for ShaderPlatform
impl Copy for ShaderPlatform
Auto Trait Implementations
impl RefUnwindSafe for ShaderPlatform
impl Send for ShaderPlatform
impl Sync for ShaderPlatform
impl Unpin for ShaderPlatform
impl UnwindSafe for ShaderPlatform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more