Struct wgpu_core::command::CommandBuffer
source · pub struct CommandBuffer<A: HalApi> {
encoder: CommandEncoder<A>,
status: CommandEncoderStatus,
pub(crate) device_id: Stored<DeviceId>,
pub(crate) trackers: Tracker<A>,
buffer_memory_init_actions: Vec<BufferInitTrackerAction>,
texture_memory_actions: CommandBufferTextureMemoryActions,
pub(crate) pending_query_resets: QueryResetMap<A>,
limits: Limits,
support_clear_texture: bool,
pub(crate) commands: Option<Vec<Command>>,
}
Fields§
§encoder: CommandEncoder<A>
§status: CommandEncoderStatus
§device_id: Stored<DeviceId>
§trackers: Tracker<A>
§buffer_memory_init_actions: Vec<BufferInitTrackerAction>
§texture_memory_actions: CommandBufferTextureMemoryActions
§pending_query_resets: QueryResetMap<A>
§limits: Limits
§support_clear_texture: bool
§commands: Option<Vec<Command>>
Implementations§
source§impl<A: HalApi> CommandBuffer<A>
impl<A: HalApi> CommandBuffer<A>
pub(crate) fn new( encoder: A::CommandEncoder, device_id: Stored<DeviceId>, limits: Limits, _downlevel: DownlevelCapabilities, features: Features, enable_tracing: bool, label: Option<String> ) -> Self
pub(crate) fn insert_barriers_from_tracker( raw: &mut A::CommandEncoder, base: &mut Tracker<A>, head: &Tracker<A>, buffer_guard: &Storage<Buffer<A>, BufferId>, texture_guard: &Storage<Texture<A>, TextureId> )
pub(crate) fn insert_barriers_from_scope( raw: &mut A::CommandEncoder, base: &mut Tracker<A>, head: &UsageScope<A>, buffer_guard: &Storage<Buffer<A>, BufferId>, texture_guard: &Storage<Texture<A>, TextureId> )
pub(crate) fn drain_barriers( raw: &mut A::CommandEncoder, base: &mut Tracker<A>, buffer_guard: &Storage<Buffer<A>, BufferId>, texture_guard: &Storage<Texture<A>, TextureId> )
source§impl<A: HalApi> CommandBuffer<A>
impl<A: HalApi> CommandBuffer<A>
fn get_encoder_mut( storage: &mut Storage<Self, CommandEncoderId>, id: CommandEncoderId ) -> Result<&mut Self, CommandEncoderError>
pub fn is_finished(&self) -> bool
pub(crate) fn into_baked(self) -> BakedCommands<A>
Trait Implementations§
source§impl<A: HalApi> Resource for CommandBuffer<A>
impl<A: HalApi> Resource for CommandBuffer<A>
impl<A: HalApi> Access<BindGroup<A>> for CommandBuffer<A>
impl<A: HalApi> Access<Buffer<A>> for CommandBuffer<A>
impl<A: HalApi> Access<CommandBuffer<A>> for Device<A>
impl<A: HalApi> Access<CommandBuffer<A>> for Root
impl<A: HalApi> Access<QuerySet<A>> for CommandBuffer<A>
impl<A: HalApi> Access<RenderBundle<A>> for CommandBuffer<A>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for CommandBuffer<A>
impl<A> Send for CommandBuffer<A>where A: Send,
impl<A> Sync for CommandBuffer<A>where A: Sync,
impl<A> Unpin for CommandBuffer<A>where A: Unpin, <A as Api>::BindGroup: Unpin, <A as Api>::CommandBuffer: Unpin, <A as Api>::CommandEncoder: Unpin, <A as Api>::ComputePipeline: Unpin, <A as Api>::QuerySet: Unpin, <A as Api>::RenderPipeline: Unpin, <A as Api>::Sampler: Unpin, <A as Api>::TextureView: Unpin,
impl<A> !UnwindSafe for CommandBuffer<A>
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