pub enum RhiCommand {
Show 14 variants
BeginFrame {
frame_index: u32,
},
AcquireSwapchainImage,
WriteBuffer {
buffer: BufferId,
offset: u64,
data: Vec<u8>,
},
TransitionBuffer {
buffer: BufferId,
from: AccessType,
to: AccessType,
},
DispatchCompute(ComputePassDescriptor),
BeginRenderPass {
pass: PassDescriptor,
image_index: u32,
},
EndRenderPass,
BindGraphicsPipeline {
material: MaterialId,
mesh: MeshId,
depth_enabled: bool,
},
BindDescriptorSets {
first_set: u32,
bind_groups: Vec<BindGroupId>,
dynamic_offsets: Vec<u32>,
},
PushConstants {
stages: ShaderStageFlags,
offset: u32,
data: Vec<u8>,
},
SetVertexBuffers {
mesh: MeshId,
first_binding: u32,
},
SetIndexBuffer {
mesh: MeshId,
},
DrawIndexed {
index_count: u32,
instance_count: u32,
first_index: u32,
vertex_offset: i32,
first_instance: u32,
},
SubmitFrame {
present: bool,
},
}Variants§
BeginFrame
Select the in-flight frame slot. User owns the ring index.
AcquireSwapchainImage
Acquire the next swapchain image for the current frame slot.
WriteBuffer
CPU-side buffer upload (staging copy or mapped write in HAL).
TransitionBuffer
DispatchCompute(ComputePassDescriptor)
BeginRenderPass
EndRenderPass
BindGraphicsPipeline
BindDescriptorSets
PushConstants
SetVertexBuffers
SetIndexBuffer
DrawIndexed
SubmitFrame
Trait Implementations§
Source§impl Clone for RhiCommand
impl Clone for RhiCommand
Source§fn clone(&self) -> RhiCommand
fn clone(&self) -> RhiCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RhiCommand
impl RefUnwindSafe for RhiCommand
impl Send for RhiCommand
impl Sync for RhiCommand
impl Unpin for RhiCommand
impl UnsafeUnpin for RhiCommand
impl UnwindSafe for RhiCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more