Struct gfx_hal::command::SubpassCommandBuffer
source · Expand description
A secondary command buffer recorded entirely within a subpass.
Implementations
sourceimpl<B: Backend, S: Shot> SubpassCommandBuffer<B, S>
impl<B: Backend, S: Shot> SubpassCommandBuffer<B, S>
sourcepub unsafe fn new(raw: B::CommandBuffer) -> Self
pub unsafe fn new(raw: B::CommandBuffer) -> Self
Wraps the given CommandBuffer
in a SubpassCommandBuffer
, starting
to record a new subpass.
sourceimpl<B: Backend> SubpassCommandBuffer<B, OneShot>
impl<B: Backend> SubpassCommandBuffer<B, OneShot>
sourcepub unsafe fn begin<'a>(
&mut self,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
pub unsafe fn begin<'a>(
&mut self,
subpass: Subpass<'a, B>,
framebuffer: Option<&'a B::Framebuffer>
)
Begin recording a one-shot sub-pass command buffer.
sourceimpl<B: Backend> SubpassCommandBuffer<B, MultiShot>
impl<B: Backend> SubpassCommandBuffer<B, MultiShot>
Methods from Deref<Target = RenderSubpassCommon<B, B::CommandBuffer>>
sourcepub 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>,
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>,
sourcepub unsafe fn draw(
&mut self,
vertices: Range<VertexCount>,
instances: Range<InstanceCount>
)
pub unsafe fn draw(
&mut self,
vertices: Range<VertexCount>,
instances: Range<InstanceCount>
)
sourcepub unsafe fn draw_indexed(
&mut self,
indices: Range<IndexCount>,
base_vertex: VertexOffset,
instances: Range<InstanceCount>
)
pub unsafe fn draw_indexed(
&mut self,
indices: Range<IndexCount>,
base_vertex: VertexOffset,
instances: Range<InstanceCount>
)
sourcepub unsafe fn draw_indirect(
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
pub unsafe fn draw_indirect(
&mut self,
buffer: &B::Buffer,
offset: Offset,
draw_count: DrawCount,
stride: u32
)
sourcepub unsafe fn draw_indexed_indirect(
&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
)
sourcepub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<'_, B>)
pub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<'_, B>)
sourcepub unsafe fn bind_vertex_buffers<I, T>(&mut self, first_binding: u32, buffers: I)where
I: IntoIterator<Item = (T, Offset)>,
T: Borrow<B::Buffer>,
pub unsafe fn bind_vertex_buffers<I, T>(&mut self, first_binding: u32, buffers: I)where
I: IntoIterator<Item = (T, Offset)>,
T: Borrow<B::Buffer>,
sourcepub unsafe fn bind_graphics_pipeline(&mut self, pipeline: &B::GraphicsPipeline)
pub unsafe fn bind_graphics_pipeline(&mut self, pipeline: &B::GraphicsPipeline)
sourcepub 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>,
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>,
sourcepub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T)where
T: IntoIterator,
T::Item: Borrow<Viewport>,
pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T)where
T: IntoIterator,
T::Item: Borrow<Viewport>,
sourcepub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T)where
T: IntoIterator,
T::Item: Borrow<Rect>,
pub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T)where
T: IntoIterator,
T::Item: Borrow<Rect>,
sourcepub unsafe fn set_stencil_reference(&mut self, faces: Face, value: StencilValue)
pub unsafe fn set_stencil_reference(&mut self, faces: Face, value: StencilValue)
sourcepub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: StencilValue)
pub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: StencilValue)
sourcepub unsafe fn set_stencil_write_mask(&mut self, faces: Face, value: StencilValue)
pub unsafe fn set_stencil_write_mask(&mut self, faces: Face, value: StencilValue)
sourcepub unsafe fn set_blend_constants(&mut self, cv: ColorValue)
pub unsafe fn set_blend_constants(&mut self, cv: ColorValue)
sourcepub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)
pub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)
sourcepub unsafe fn push_graphics_constants(
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
pub unsafe fn push_graphics_constants(
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
sourcepub unsafe fn set_line_width(&mut self, width: f32)
pub unsafe fn set_line_width(&mut self, width: f32)
sourcepub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)
pub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)
sourcepub unsafe fn begin_query(&mut self, query: Query<'_, B>, flags: ControlFlags)
pub unsafe fn begin_query(&mut self, query: Query<'_, B>, flags: ControlFlags)
sourcepub unsafe fn write_timestamp(
&mut self,
stage: PipelineStage,
query: Query<'_, B>
)
pub unsafe fn write_timestamp(
&mut self,
stage: PipelineStage,
query: Query<'_, B>
)
Trait Implementations
sourceimpl<B: Backend, S: Shot> Deref for SubpassCommandBuffer<B, S>
impl<B: Backend, S: Shot> Deref for SubpassCommandBuffer<B, S>
type Target = RenderSubpassCommon<B, <B as Backend>::CommandBuffer>
type Target = RenderSubpassCommon<B, <B as Backend>::CommandBuffer>
The resulting type after dereferencing.
sourcefn deref(&self) -> &RenderSubpassCommon<B, B::CommandBuffer>
fn deref(&self) -> &RenderSubpassCommon<B, B::CommandBuffer>
Dereferences the value.
sourceimpl<B: Backend, S: Shot> DerefMut for SubpassCommandBuffer<B, S>
impl<B: Backend, S: Shot> DerefMut for SubpassCommandBuffer<B, S>
sourcefn deref_mut(&mut self) -> &mut RenderSubpassCommon<B, B::CommandBuffer>
fn deref_mut(&mut self) -> &mut RenderSubpassCommon<B, B::CommandBuffer>
Mutably dereferences the value.
Auto Trait Implementations
impl<B, S> RefUnwindSafe for SubpassCommandBuffer<B, S>where
B: RefUnwindSafe,
S: RefUnwindSafe,
<B as Backend>::CommandBuffer: RefUnwindSafe,
impl<B, S> Send for SubpassCommandBuffer<B, S>where
S: Send,
impl<B, S> Sync for SubpassCommandBuffer<B, S>where
S: Sync,
impl<B, S> Unpin for SubpassCommandBuffer<B, S>where
B: Unpin,
S: Unpin,
<B as Backend>::CommandBuffer: Unpin,
impl<B, S> UnwindSafe for SubpassCommandBuffer<B, S>where
B: UnwindSafe,
S: UnwindSafe,
<B as Backend>::CommandBuffer: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more