pub struct WebGLRSShader<'ctx> { /* private fields */ }
Expand description

The WebGLRSShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLRSProgram requires both types of shaders.

Implementations§

Compiles a GLSL shader into binary data so that it can be used by a WebGLRSProgram.

Deletes this WebGLRSShader object.

Returns the information log for the specified WebGLRSShader object. It contains warnings, debugging and compile information.

Returns the source code of this WebGLRSShader as a String.

Returns true if this WebGLRSShader is valid, false otherwise.

Sets the source code of the WebGLRSShader object.

Returns a bool indicating whether or not the WebGLRSShader is flagged for deletion.

Returns a bool indicating whether or not the last compilation was successful.

Returns a ShaderKind value indicating whether the shader is a vertex shader or fragment shader.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.