pub struct Gfx2d<R: Resources> { /* fields omitted */ }
The data used for drawing 2D graphics.
Stores buffers and PSO objects needed for rendering 2D graphics.
Creates a new Gfx2d object.
pub fn draw<C, F, U>( &mut self, encoder: &mut Encoder<R, C>, output_color: &RenderTargetView<R, Srgba8>, output_stencil: &DepthStencilView<R, DepthStencil>, viewport: Viewport, f: F ) -> U where C: CommandBuffer<R>, F: FnOnce(Context, &mut GfxGraphics<R, C>) -> U, | [src] |
Renders graphics to a Gfx renderer.
impl<R> Send for Gfx2d<R> where <R as Resources>::Buffer: Send + Sync, <R as Resources>::Mapping: Send, <R as Resources>::PipelineStateObject: Send + Sync, <R as Resources>::Program: Send + Sync, | |
impl<R> Sync for Gfx2d<R> where <R as Resources>::Buffer: Send + Sync, <R as Resources>::Mapping: Send, <R as Resources>::PipelineStateObject: Send + Sync, <R as Resources>::Program: Send + Sync, | |
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> SetParameter for T | |
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where T: Parameter<Self>, | |
Sets value
as a parameter of self
.