Struct sierra::Encoder

source ·
pub struct Encoder<'a> { /* private fields */ }
Expand description

Command encoder that can encode commands outside render pass.

Implementations§

Begins render pass and returns RenderPassEncoder to encode commands of the render pass. RenderPassEncoder borrows Encoder. To continue use this Encoder returned RenderPassEncoder must be dropped which implicitly ends render pass.

framebuffer - a framebuffer (set of attachments) for render pass to use. clears - an array of clear values. render pass will clear attachments with load_op == LoadOp::Clear using those values. They will be used in order.

Begins render pass and returns RenderPassEncoder to encode commands of the render pass. RenderPassEncoder borrows Encoder. To continue use this Encoder returned RenderPassEncoder must be dropped which implicitly ends render pass.

pass - render pass to encode. framebuffer - a framebuffer (set of attachments) for render pass to use. clears - an array of clear values. render pass will clear attachments with load_op == LoadOp::Clear using those values. They will be used in order.

Begins rendering

Updates a buffer’s contents from host memory

Uploads data to the buffer. May create intermediate staging buffer if necessary.

Uploads data to the buffer. Uses cached staging buffers and may create new if necessary.

Builds acceleration structures.

Flushes commands recorded into this encoder to the underlying command buffer.

Methods from Deref<Target = EncoderCommon<'a>>§

Trait Implementations§

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

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.