pub struct RenderContext { /* private fields */ }
Expand description

Generic Rendering API setup to use the current platforms primary Rendering Backend

Implementations§

Permanently transfer a render pipeline to the render context in exchange for a resource ID that you can use in render commands.

Permanently transfer a render pipeline to the render context in exchange for a resource ID that you can use in render commands.

destroys the RenderContext and all associated resources.

Allocates a command buffer and records commands to the GPU. This is the primary entry point for submitting commands to the GPU and where rendering will occur.

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 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.