[−][src]Struct rendy_command::RenderPassInlineEncoder
Special encoder to record commands inside render pass.
Implementations
impl<'a, B> RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
pub fn next_subpass_inline(self) -> RenderPassInlineEncoder<'a, B>
[src]
Record next subpass inline.
pub fn next_subpass_secondary(self) -> RenderPassSecondaryEncoder<'a, B>
[src]
Record next subpass secondary.
Methods from Deref<Target = RenderPassEncoder<'a, B>>
pub unsafe fn clear_attachments(
&mut self,
clears: impl IntoIterator<Item = impl Borrow<AttachmentClear>>,
rects: impl IntoIterator<Item = impl Borrow<ClearRect>>
)
[src]
&mut self,
clears: impl IntoIterator<Item = impl Borrow<AttachmentClear>>,
rects: impl IntoIterator<Item = impl Borrow<ClearRect>>
)
Clear regions within bound framebuffer attachments
See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdClearAttachments.html#vkCmdBeginRenderPass
pub unsafe fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)
[src]
Draw.
Safety
The range of vertices
must not exceed the size of the currently bound vertex buffer,
and the range of instances
must not exceed the size of the currently bound instance
buffer.
See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDraw.html
pub unsafe fn draw_indexed(
&mut self,
indices: Range<u32>,
base_vertex: i32,
instances: Range<u32>
)
[src]
&mut self,
indices: Range<u32>,
base_vertex: i32,
instances: Range<u32>
)
Draw indexed, with base_vertex
specifying an offset that is treated as
vertex number 0.
Safety
Same as draw()
, plus the value of base_vertex
. So, base_vertex + indices.end
must not be larger than the currently bound vertex buffer.
See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndexed.html
pub unsafe fn draw_indirect(
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
Draw indirect.
Similar to draw
except takes vertices and instance data from buffer
at specified offset
.
buffer
must contain draw_count
of DrawCommand
starting from offset
with stride
bytes between each.
Safety
Similar to draw()
.
See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndirect.html
pub unsafe fn draw_indexed_indirect(
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
Draw indirect with indices.
Similar to [draw_indexed
] except takes vertices, indices and instance data from buffer
at specified offset
.
buffer
must contain draw_count
of DrawIndexedCommand
starting from offset
with stride
bytes between each.
Safety
Similar to draw_indexed()
See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndexedIndirect.html
pub fn reborrow(&mut self) -> RenderPassEncoder<'_, B>
[src]
Reborrow encoder.
Trait Implementations
impl<'a, B: Debug + Backend> Debug for RenderPassInlineEncoder<'a, B>
[src]
impl<'a, B> Deref for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
type Target = RenderPassEncoder<'a, B>
The resulting type after dereferencing.
fn deref(&self) -> &RenderPassEncoder<'a, B>
[src]
impl<'a, B> DerefMut for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
fn deref_mut(&mut self) -> &mut RenderPassEncoder<'a, B>
[src]
impl<'a, B> Drop for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: RefUnwindSafe,
<B as Backend>::CommandBuffer: RefUnwindSafe,
impl<'a, B> Send for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Send,
<B as Backend>::CommandBuffer: Send,
impl<'a, B> Sync for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Sync,
<B as Backend>::CommandBuffer: Sync,
impl<'a, B> Unpin for RenderPassInlineEncoder<'a, B>
impl<'a, B> !UnwindSafe for RenderPassInlineEncoder<'a, B>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,