[−][src]Struct gfx_hal::command::SubpassCommandBuffer
A secondary command buffer recorded entirely within a subpass.
Methods
impl<B: Backend, S: Shot> SubpassCommandBuffer<B, S>
[src]
pub unsafe fn new(raw: B::CommandBuffer) -> Self
[src]
Wraps the given CommandBuffer
in a SubpassCommandBuffer
, starting
to record a new subpass.
pub unsafe fn finish(&mut self)
[src]
Finish recording commands to the command buffer.
The command pool must be reset to able to re-record commands.
impl<B: Backend> SubpassCommandBuffer<B, OneShot>
[src]
pub unsafe fn begin<'a>(
&mut self,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
[src]
&mut self,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
Begin recording a one-shot sub-pass command buffer.
impl<B: Backend> SubpassCommandBuffer<B, MultiShot>
[src]
pub unsafe fn begin<'a>(
&mut self,
allow_pending_resubmit: bool,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
[src]
&mut self,
allow_pending_resubmit: bool,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
Begin recording a one-shot sub-pass command buffer.
Methods from Deref<Target = RenderSubpassCommon<B, B::CommandBuffer>>
pub unsafe fn clear_attachments<T, U>(&mut self, clears: T, rects: U) where
T: IntoIterator,
T::Item: Borrow<AttachmentClear>,
U: IntoIterator,
U::Item: Borrow<ClearRect>,
[src]
T: IntoIterator,
T::Item: Borrow<AttachmentClear>,
U: IntoIterator,
U::Item: Borrow<ClearRect>,
pub unsafe fn draw(
&mut self,
vertices: Range<VertexCount>,
instances: Range<InstanceCount>
)
[src]
&mut self,
vertices: Range<VertexCount>,
instances: Range<InstanceCount>
)
pub unsafe fn draw_indexed(
&mut self,
indices: Range<IndexCount>,
base_vertex: VertexOffset,
instances: Range<InstanceCount>
)
[src]
&mut self,
indices: Range<IndexCount>,
base_vertex: VertexOffset,
instances: Range<InstanceCount>
)
pub unsafe fn draw_indirect(
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
pub unsafe fn draw_indexed_indirect(
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
pub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<B>)
[src]
pub unsafe fn bind_vertex_buffers<I, T>(
&mut self,
first_binding: BufferIndex,
buffers: I
) where
I: IntoIterator<Item = (T, Offset)>,
T: Borrow<B::Buffer>,
[src]
&mut self,
first_binding: BufferIndex,
buffers: I
) where
I: IntoIterator<Item = (T, Offset)>,
T: Borrow<B::Buffer>,
pub unsafe fn bind_graphics_pipeline(&mut self, pipeline: &B::GraphicsPipeline)
[src]
pub unsafe fn bind_graphics_descriptor_sets<I, J>(
&mut self,
layout: &B::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
I::Item: Borrow<B::DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
[src]
&mut self,
layout: &B::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
I::Item: Borrow<B::DescriptorSet>,
J: IntoIterator,
J::Item: Borrow<DescriptorSetOffset>,
pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T) where
T: IntoIterator,
T::Item: Borrow<Viewport>,
[src]
T: IntoIterator,
T::Item: Borrow<Viewport>,
pub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T) where
T: IntoIterator,
T::Item: Borrow<Rect>,
[src]
T: IntoIterator,
T::Item: Borrow<Rect>,
pub unsafe fn set_stencil_reference(&mut self, faces: Face, value: StencilValue)
[src]
pub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: StencilValue)
[src]
pub unsafe fn set_stencil_write_mask(
&mut self,
faces: Face,
value: StencilValue
)
[src]
&mut self,
faces: Face,
value: StencilValue
)
pub unsafe fn set_blend_constants(&mut self, cv: ColorValue)
[src]
pub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)
[src]
pub unsafe fn push_graphics_constants(
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
[src]
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
pub unsafe fn set_line_width(&mut self, width: f32)
[src]
pub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)
[src]
pub unsafe fn begin_query(&mut self, query: Query<B>, flags: ControlFlags)
[src]
pub unsafe fn end_query(&mut self, query: Query<B>)
[src]
pub unsafe fn write_timestamp(&mut self, stage: PipelineStage, query: Query<B>)
[src]
Trait Implementations
impl<B, S> IntoRawCommandBuffer<B, Graphics> for SubpassCommandBuffer<B, S> where
B: Backend,
S: Shot,
[src]
B: Backend,
S: Shot,
fn into_raw(self) -> B::CommandBuffer
[src]
impl<B, C, S> Submittable<B, C, Secondary> for SubpassCommandBuffer<B, S> where
B: Backend,
C: Capability + Supports<Graphics>,
S: Shot,
[src]
B: Backend,
C: Capability + Supports<Graphics>,
S: Shot,
impl<B: Backend, S: Shot> Deref for SubpassCommandBuffer<B, S>
[src]
type Target = RenderSubpassCommon<B, B::CommandBuffer>
The resulting type after dereferencing.
fn deref(&self) -> &RenderSubpassCommon<B, B::CommandBuffer>
[src]
impl<B: Backend, S: Shot> DerefMut for SubpassCommandBuffer<B, S>
[src]
fn deref_mut(&mut self) -> &mut RenderSubpassCommon<B, B::CommandBuffer>
[src]
impl<B: Debug + Backend, S: Debug + Shot, R: Debug> Debug for SubpassCommandBuffer<B, S, R>
[src]
impl<B, S, R> Borrow<R> for SubpassCommandBuffer<B, S, R> where
B: Backend<CommandBuffer = R>,
S: Shot,
R: RawCommandBuffer<B>,
[src]
B: Backend<CommandBuffer = R>,
S: Shot,
R: RawCommandBuffer<B>,
Auto Trait Implementations
impl<B, S, R> Unpin for SubpassCommandBuffer<B, S, R> where
B: Unpin,
R: Unpin,
S: Unpin,
B: Unpin,
R: Unpin,
S: Unpin,
impl<B, S, R> Sync for SubpassCommandBuffer<B, S, R> where
R: Sync,
S: Sync,
R: Sync,
S: Sync,
impl<B, S, R> Send for SubpassCommandBuffer<B, S, R> where
R: Send,
S: Send,
R: Send,
S: Send,
impl<B, S, R> UnwindSafe for SubpassCommandBuffer<B, S, R> where
B: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
B: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
impl<B, S, R> RefUnwindSafe for SubpassCommandBuffer<B, S, R> where
B: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
B: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> Supports<T> for 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>,
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,