[−]Struct gstreamer_gl::GLSLStage
GLSLStage
holds and represents a single OpenGL shader stage.
Implements
Methods
impl GLSLStage
[src][−]
pub fn new<P: IsA<GLContext>>(context: &P, type_: u32) -> GLSLStage
[src][−]
context
a GLContext
type_
the GL enum shader stage type
Returns
a new GLSLStage
of the specified type_
pub fn new_default_fragment<P: IsA<GLContext>>(context: &P) -> GLSLStage
[src]
pub fn new_default_vertex<P: IsA<GLContext>>(context: &P) -> GLSLStage
[src]
pub fn new_with_string<P: IsA<GLContext>>(
context: &P,
type_: u32,
version: GLSLVersion,
profile: GLSLProfile,
str: &str
) -> GLSLStage
[src][−]
context: &P,
type_: u32,
version: GLSLVersion,
profile: GLSLProfile,
str: &str
) -> GLSLStage
context
a GLContext
type_
the GL enum shader stage type
version
the GLSLVersion
profile
the GLSLProfile
str
a shader string
Returns
a new GLSLStage
of the specified type_
pub fn new_with_strings<P: IsA<GLContext>>(
context: &P,
type_: u32,
version: GLSLVersion,
profile: GLSLProfile,
str: &[&str]
) -> GLSLStage
[src][−]
context: &P,
type_: u32,
version: GLSLVersion,
profile: GLSLProfile,
str: &[&str]
) -> GLSLStage
context
a GLContext
type_
the GL enum shader stage type
version
the GLSLVersion
profile
the GLSLProfile
n_strings
the number of strings in str
str
an array of strings concatted together to produce a shader
Returns
a new GLSLStage
of the specified type_
pub fn compile(&self) -> Result<(), Error>
[src][−]
Returns
whether the compilation suceeded
pub fn get_handle(&self) -> u32
[src][−]
Returns
The GL handle for this shader stage
pub fn get_profile(&self) -> GLSLProfile
[src][−]
Returns
The GLSL profile for the current shader stage
pub fn get_shader_type(&self) -> u32
[src][−]
Returns
The GL shader type for this shader stage
pub fn get_version(&self) -> GLSLVersion
[src][−]
Returns
The GLSL version for the current shader stage
pub fn set_strings(
&self,
version: GLSLVersion,
profile: GLSLProfile,
str: &[&str]
) -> Result<(), BoolError>
[src][−]
&self,
version: GLSLVersion,
profile: GLSLProfile,
str: &[&str]
) -> Result<(), BoolError>
Trait Implementations
impl Clone for GLSLStage
[+]
impl Debug for GLSLStage
[+]
impl Eq for GLSLStage
impl Hash for GLSLStage
[+]
impl IsA<Object> for GLSLStage
impl Ord for GLSLStage
[+]
impl<T: ObjectType> PartialEq<T> for GLSLStage
[+]
impl<T: ObjectType> PartialOrd<T> for GLSLStage
[+]
impl Send for GLSLStage
[src]
impl StaticType for GLSLStage
[+]
impl Sync for GLSLStage
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> From<T> for T
[src][+]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<O> GstObjectExt for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<O> GstObjectExtManual for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,