[−][src]Struct rendy::command::RenderPassInlineEncoder
Special encoder to record commands inside render pass.
Methods
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 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 as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &<B as Backend>::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 as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &<B as Backend>::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 for RenderPassInlineEncoder<'a, B> where
B: Debug + Backend,
[src]
B: Debug + Backend,
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> 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> Drop for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
Auto Trait Implementations
impl<'a, B> Unpin for RenderPassInlineEncoder<'a, B>
impl<'a, B> Sync for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Sync,
<B as Backend>::CommandBuffer: Sync,
impl<'a, B> Send for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Send,
<B as Backend>::CommandBuffer: Send,
impl<'a, B> !UnwindSafe for RenderPassInlineEncoder<'a, B>
impl<'a, B> RefUnwindSafe for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: RefUnwindSafe,
<B as Backend>::CommandBuffer: RefUnwindSafe,
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Erased for T
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more