pub enum Profile {
Common(ProfileCommon),
CG(ProfileCG),
GLES(ProfileGLES),
GLSL(ProfileGLSL),
}
Expand description
A <profile_*>
element.
Variants§
Common(ProfileCommon)
Opens a block of platform-independent declarations for the common, fixed-function shader.
CG(ProfileCG)
Declares platform-specific data types and Technique
s
for the Cg language.
GLES(ProfileGLES)
Declares platform-specific data types and Technique
s
for OpenGL ES.
GLSL(ProfileGLSL)
Declares platform-specific data types and Technique
s
for OpenGL Shading Language.
Implementations§
Trait Implementations§
Source§impl From<ProfileCommon> for Profile
impl From<ProfileCommon> for Profile
Source§fn from(v: ProfileCommon) -> Self
fn from(v: ProfileCommon) -> Self
Converts to this type from the input type.
Source§impl From<ProfileGLES> for Profile
impl From<ProfileGLES> for Profile
Source§fn from(v: ProfileGLES) -> Self
fn from(v: ProfileGLES) -> Self
Converts to this type from the input type.
Source§impl From<ProfileGLSL> for Profile
impl From<ProfileGLSL> for Profile
Source§fn from(v: ProfileGLSL) -> Self
fn from(v: ProfileGLSL) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more