[−][src]Struct amethyst_rendy::rendy::hal::command::CommandBuffer
A strongly-typed command buffer that will only implement methods that are valid for the operations it supports.
Methods
impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
C: Supports<Compute>,
L: Level,
S: Shot,
[src]
B: Backend,
C: Supports<Compute>,
L: Level,
S: Shot,
pub unsafe fn bind_compute_pipeline(
&mut self,
pipeline: &<B as Backend>::ComputePipeline
)
[src]
&mut self,
pipeline: &<B as Backend>::ComputePipeline
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn bind_compute_descriptor_sets<I, J>(
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn dispatch(&mut self, count: [u32; 3])
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn dispatch_indirect(
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64
)
[src]
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn push_compute_constants(
&mut self,
layout: &<B as Backend>::PipelineLayout,
offset: u32,
constants: &[u32]
)
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
offset: u32,
constants: &[u32]
)
Identical to the RawCommandBuffer
method of the same name.
impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
C: Supports<Graphics>,
L: Level,
S: Shot,
[src]
B: Backend,
C: Supports<Graphics>,
L: Level,
S: Shot,
pub unsafe fn clear_image<T>(
&mut self,
image: &<B as Backend>::Image,
layout: Layout,
color: ClearColor,
depth_stencil: ClearDepthStencil,
subresource_ranges: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<SubresourceRange>,
[src]
&mut self,
image: &<B as Backend>::Image,
layout: Layout,
color: ClearColor,
depth_stencil: ClearDepthStencil,
subresource_ranges: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<SubresourceRange>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<B>)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn bind_vertex_buffers<I, T>(
&mut self,
first_binding: u32,
buffers: I
) where
I: IntoIterator<Item = (T, u64)>,
T: Borrow<<B as Backend>::Buffer>,
[src]
&mut self,
first_binding: u32,
buffers: I
) where
I: IntoIterator<Item = (T, u64)>,
T: Borrow<<B as Backend>::Buffer>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn bind_graphics_pipeline(
&mut self,
pipeline: &<B as Backend>::GraphicsPipeline
)
[src]
&mut self,
pipeline: &<B as Backend>::GraphicsPipeline
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn bind_graphics_descriptor_sets<I, J>(
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Viewport>,
[src]
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Viewport>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Rect>,
[src]
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Rect>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_stencil_reference(&mut self, faces: Face, value: u32)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: u32)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_stencil_write_mask(&mut self, faces: Face, value: u32)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_blend_constants(&mut self, cv: [f32; 4])
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_line_width(&mut self, width: f32)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn push_graphics_constants(
&mut self,
layout: &<B as Backend>::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn resolve_image<T>(
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageResolve>,
[src]
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageResolve>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn blit_image<T>(
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
filter: Filter,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageBlit>,
[src]
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
filter: Filter,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageBlit>,
Identical to the RawCommandBuffer
method of the same name.
impl<B, C, S> CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer> where
B: Backend,
C: Supports<Graphics>,
S: Shot,
[src]
B: Backend,
C: Supports<Graphics>,
S: Shot,
pub unsafe fn begin_render_pass_inline<T>(
&mut self,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassInlineEncoder<B> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
[src]
&mut self,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassInlineEncoder<B> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn begin_render_pass_secondary<T>(
&mut self,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassSecondaryEncoder<B> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
[src]
&mut self,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassSecondaryEncoder<B> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
Creates a new secondary render pass.
impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
C: Supports<GraphicsOrCompute>,
L: Level,
S: Shot,
[src]
B: Backend,
C: Supports<GraphicsOrCompute>,
L: Level,
S: Shot,
pub unsafe fn begin_query(&mut self, query: Query<B>, flags: ControlFlags)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn end_query(&mut self, query: Query<B>)
[src]
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn reset_query_pool(
&mut self,
pool: &<B as Backend>::QueryPool,
queries: Range<u32>
)
[src]
&mut self,
pool: &<B as Backend>::QueryPool,
queries: Range<u32>
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn copy_query_pool_results(
&mut self,
pool: &<B as Backend>::QueryPool,
queries: Range<u32>,
buffer: &<B as Backend>::Buffer,
offset: u64,
stride: u64,
flags: ResultFlags
)
[src]
&mut self,
pool: &<B as Backend>::QueryPool,
queries: Range<u32>,
buffer: &<B as Backend>::Buffer,
offset: u64,
stride: u64,
flags: ResultFlags
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn write_timestamp(&mut self, stage: PipelineStage, query: Query<B>)
[src]
Identical to the RawCommandBuffer
method of the same name.
impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
C: Supports<Transfer>,
L: Level,
S: Shot,
[src]
B: Backend,
C: Supports<Transfer>,
L: Level,
S: Shot,
pub unsafe fn pipeline_barrier<'i, T>(
&mut self,
stages: Range<PipelineStage>,
dependencies: Dependencies,
barriers: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Barrier<'i, B>>,
[src]
&mut self,
stages: Range<PipelineStage>,
dependencies: Dependencies,
barriers: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Barrier<'i, B>>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn fill_buffer<R>(
&mut self,
buffer: &<B as Backend>::Buffer,
range: R,
data: u32
) where
R: RangeArg<u64>,
[src]
&mut self,
buffer: &<B as Backend>::Buffer,
range: R,
data: u32
) where
R: RangeArg<u64>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn copy_buffer<T>(
&mut self,
src: &<B as Backend>::Buffer,
dst: &<B as Backend>::Buffer,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferCopy>,
[src]
&mut self,
src: &<B as Backend>::Buffer,
dst: &<B as Backend>::Buffer,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferCopy>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn update_buffer(
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
data: &[u8]
)
[src]
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
data: &[u8]
)
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn copy_image<T>(
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageCopy>,
[src]
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageCopy>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn copy_buffer_to_image<T>(
&mut self,
src: &<B as Backend>::Buffer,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferImageCopy>,
[src]
&mut self,
src: &<B as Backend>::Buffer,
dst: &<B as Backend>::Image,
dst_layout: Layout,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferImageCopy>,
Identical to the RawCommandBuffer
method of the same name.
pub unsafe fn copy_image_to_buffer<T>(
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Buffer,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferImageCopy>,
[src]
&mut self,
src: &<B as Backend>::Image,
src_layout: Layout,
dst: &<B as Backend>::Buffer,
regions: T
) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<BufferImageCopy>,
Identical to the RawCommandBuffer
method of the same name.
impl<B, C> CommandBuffer<B, C, OneShot, Primary, <B as Backend>::CommandBuffer> where
B: Backend,
[src]
B: Backend,
impl<B, C> CommandBuffer<B, C, MultiShot, Primary, <B as Backend>::CommandBuffer> where
B: Backend,
[src]
B: Backend,
pub unsafe fn begin(&mut self, allow_pending_resubmit: bool)
[src]
Begin recording a multi-shot primary command buffer.
impl<B, C> CommandBuffer<B, C, OneShot, Secondary, <B as Backend>::CommandBuffer> where
B: Backend,
[src]
B: Backend,
pub unsafe fn begin(&mut self, inheritance: CommandBufferInheritanceInfo<B>)
[src]
Begin recording a one-shot secondary command buffer.
impl<B, C> CommandBuffer<B, C, MultiShot, Secondary, <B as Backend>::CommandBuffer> where
B: Backend,
[src]
B: Backend,
pub unsafe fn begin(
&mut self,
allow_pending_resubmit: bool,
inheritance: CommandBufferInheritanceInfo<B>
)
[src]
&mut self,
allow_pending_resubmit: bool,
inheritance: CommandBufferInheritanceInfo<B>
)
Begin recording a multi-shot secondary command buffer.
impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
L: Level,
S: Shot,
[src]
B: Backend,
L: Level,
S: Shot,
pub unsafe fn new(
raw: <B as Backend>::CommandBuffer
) -> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer>
[src]
raw: <B as Backend>::CommandBuffer
) -> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer>
Create a new typed command buffer from a raw command pool.
pub unsafe fn finish(&mut self)
[src]
Finish recording commands to the command buffers.
The command buffer must be reset to able to re-record commands.
pub unsafe fn reset(&mut self, release_resources: bool)
[src]
Empties the command buffer, optionally releasing all resources from the commands that have been submitted. The command buffer is moved back to the "initial" state.
The command buffer must not be in the "pending" state. Additionally, the command pool must have been created with the RESET_INDIVIDUAL flag to be able to reset individual buffers.
pub unsafe fn downgrade<D>(
&mut self
) -> &mut CommandBuffer<B, D, S, Primary, <B as Backend>::CommandBuffer> where
C: Supports<D>,
[src]
&mut self
) -> &mut CommandBuffer<B, D, S, Primary, <B as Backend>::CommandBuffer> where
C: Supports<D>,
Downgrade a command buffer to a lesser capability type.
impl<B, C, S> CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer> where
B: Backend,
S: Shot,
[src]
B: Backend,
S: Shot,
pub unsafe fn execute_commands<'a, I, T, K>(&mut self, cmd_buffers: I) where
C: Supports<K>,
I: IntoIterator<Item = &'a T>,
K: Capability,
T: 'a + Submittable<B, K, Secondary>,
[src]
C: Supports<K>,
I: IntoIterator<Item = &'a T>,
K: Capability,
T: 'a + Submittable<B, K, Secondary>,
Identical to the RawCommandBuffer
method of the same name.
Trait Implementations
impl<B, C, S, L, R> Debug for CommandBuffer<B, C, S, L, R> where
B: Backend + Debug,
C: Debug,
L: Debug,
R: Debug,
S: Debug,
[src]
B: Backend + Debug,
C: Debug,
L: Debug,
R: Debug,
S: Debug,
impl<B, C, K, S, L> Submittable<B, K, L> for CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
K: Capability + Supports<C>,
L: Level,
[src]
B: Backend,
K: Capability + Supports<C>,
L: Level,
impl<B, C, S, L, R> Borrow<R> for CommandBuffer<B, C, S, L, R> where
B: Backend<CommandBuffer = R>,
R: RawCommandBuffer<B>,
[src]
B: Backend<CommandBuffer = R>,
R: RawCommandBuffer<B>,
fn borrow(&self) -> &<B as Backend>::CommandBuffer
[src]
impl<B, C, S, L> IntoRawCommandBuffer<B, C> for CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
B: Backend,
[src]
B: Backend,
fn into_raw(self) -> <B as Backend>::CommandBuffer
[src]
Auto Trait Implementations
impl<B, C, S, L, R> Unpin for CommandBuffer<B, C, S, L, R> where
B: Unpin,
C: Unpin,
L: Unpin,
R: Unpin,
S: Unpin,
B: Unpin,
C: Unpin,
L: Unpin,
R: Unpin,
S: Unpin,
impl<B, C, S, L, R> Sync for CommandBuffer<B, C, S, L, R> where
C: Sync,
L: Sync,
R: Sync,
S: Sync,
C: Sync,
L: Sync,
R: Sync,
S: Sync,
impl<B, C, S, L, R> Send for CommandBuffer<B, C, S, L, R> where
C: Send,
L: Send,
R: Send,
S: Send,
C: Send,
L: Send,
R: Send,
S: Send,
impl<B, C, S, L, R> UnwindSafe for CommandBuffer<B, C, S, L, R> where
B: UnwindSafe,
C: UnwindSafe,
L: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
L: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
impl<B, C, S, L, R> RefUnwindSafe for CommandBuffer<B, C, S, L, R> where
B: RefUnwindSafe,
C: RefUnwindSafe,
L: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
L: RefUnwindSafe,
R: RefUnwindSafe,
S: 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<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
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> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,