pub struct GLShaderBuilder { /* private fields */ }👎Deprecated:
Since 4.16
Expand description
A builder-pattern type to construct GLShader objects.
Implementations§
Source§impl GLShaderBuilder
impl GLShaderBuilder
Sourcepub fn resource(self, resource: impl Into<GString>) -> Self
👎Deprecated: Since 4.16
pub fn resource(self, resource: impl Into<GString>) -> Self
Since 4.16
Resource containing the source code for the shader.
If the shader source is not coming from a resource, this
will be None.
Auto Trait Implementations§
impl !Send for GLShaderBuilder
impl !Sync for GLShaderBuilder
impl Forget for GLShaderBuilder
impl Freeze for GLShaderBuilder
impl Move for GLShaderBuilder
impl RefUnwindSafe for GLShaderBuilder
impl Unpin for GLShaderBuilder
impl UnsafeUnpin for GLShaderBuilderwhere
&'static str: UnsafeUnpin,
*mut c_void: UnsafeUnpin,
*const (&'static str, Value) is !null: UnsafeUnpin,
PhantomData<GLShader>: UnsafeUnpin,
impl UnwindSafe for GLShaderBuilderwhere
&'static str: UnwindSafe,
*mut c_void: UnwindSafe,
NonNull<(&'static str, Value)>: UnwindSafe,
NonNull<GObject>: UnwindSafe,
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