pub struct CommandEncoder { /* private fields */ }Implementations§
Source§impl CommandEncoder
impl CommandEncoder
pub fn new(context: Rc<Context>) -> Self
pub fn get_context(&self) -> &Rc<Context>
Sourcepub fn get_encoder(&self) -> RefMut<'_, Option<CommandEncoder>>
pub fn get_encoder(&self) -> RefMut<'_, Option<CommandEncoder>>
getEncoder()
pub fn visit_debug_groups(&self, f: impl FnMut(&str))
Sourcepub fn submit_command_buffer(&self)
pub fn submit_command_buffer(&self)
WebGPU-specific: submit the command buffer directly, then start a new encoder so subsequent passes in the same frame can continue recording.
Trait Implementations§
Source§impl CommandEncoder for CommandEncoder
impl CommandEncoder for CommandEncoder
fn create_upload_pass( &self, name: &str, renderable: &dyn Renderable, ) -> Box<dyn UploadPass>
fn create_render_pass( &self, name: &str, descriptor: &RenderPassDescriptor<'_>, ) -> Box<dyn RenderPass>
fn present(&self, renderable: &dyn Renderable)
fn as_any(&self) -> &dyn Any
Source§impl DebugGroupTarget for CommandEncoder
impl DebugGroupTarget for CommandEncoder
fn push_debug_group(&self, name: &str)
fn pop_debug_group(&self)
Auto Trait Implementations§
impl !Freeze for CommandEncoder
impl !RefUnwindSafe for CommandEncoder
impl !Send for CommandEncoder
impl !Sync for CommandEncoder
impl !UnwindSafe for CommandEncoder
impl Forget for CommandEncoder
impl Unpin for CommandEncoder
impl UnsafeUnpin for CommandEncoder
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