Struct gfx_device_gl::Factory

source ·
pub struct Factory { /* private fields */ }
Expand description

GL resource factory.

Implementations

Create a new Factory.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the capabilities of this Factory. This usually depends on the graphics API being used. Read more
Compiles a shader source into a Shader object that can be used to create a shader Program. Read more
Creates a new shader Program for the supplied ShaderSet.
Creates a new RawPipelineState. To create a safely typed PipelineState, see the FactoryExt trait and pso module, both in the gfx crate. Read more
Create a new empty raw texture with no data. The channel type parameter is a hint, required to assist backends that have no concept of typeless formats (OpenGL). The initial data, if given, has to be provided for all mip levels and slices: Slice0.Mip0, Slice0.Mip1, …, Slice1.Mip0, … Read more
Acquire a mapping Reader Read more
Acquire a mapping Writer Read more
Compiles a VertexShader from source.
Compiles a HullShader from source.
Compiles a VertexShader from source.
Compiles a GeometryShader from source.
Compiles a PixelShader from source. This is the same as what some APIs call a fragment shader. 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.