[−][src]Struct bevy_wgpu::renderer::WgpuRenderContext
Fields
device: Arc<Device>
command_encoder: LazyCommandEncoder
render_resource_context: WgpuRenderResourceContext
Implementations
impl WgpuRenderContext
[src]
pub fn new(device: Arc<Device>, resources: WgpuRenderResourceContext) -> Self
[src]
pub fn finish(&mut self) -> Option<CommandBuffer>
[src]
Consume this context, finalize the current CommandEncoder (if it exists), and take the current WgpuResources. This is intended to be called from a worker thread right before synchronizing with the main thread.
Trait Implementations
impl RenderContext for WgpuRenderContext
[src]
fn copy_buffer_to_buffer(
&mut self,
source_buffer: BufferId,
source_offset: u64,
destination_buffer: BufferId,
destination_offset: u64,
size: u64
)
[src]
&mut self,
source_buffer: BufferId,
source_offset: u64,
destination_buffer: BufferId,
destination_offset: u64,
size: u64
)
fn copy_buffer_to_texture(
&mut self,
source_buffer: BufferId,
source_offset: u64,
source_bytes_per_row: u32,
destination_texture: TextureId,
destination_origin: [u32; 3],
destination_mip_level: u32,
size: Extent3d
)
[src]
&mut self,
source_buffer: BufferId,
source_offset: u64,
source_bytes_per_row: u32,
destination_texture: TextureId,
destination_origin: [u32; 3],
destination_mip_level: u32,
size: Extent3d
)
fn resources(&self) -> &dyn RenderResourceContext
[src]
fn resources_mut(&mut self) -> &mut dyn RenderResourceContext
[src]
fn begin_pass(
&mut self,
pass_descriptor: &PassDescriptor,
render_resource_bindings: &RenderResourceBindings,
run_pass: &mut dyn Fn(&mut dyn RenderPass)
)
[src]
&mut self,
pass_descriptor: &PassDescriptor,
render_resource_bindings: &RenderResourceBindings,
run_pass: &mut dyn Fn(&mut dyn RenderPass)
)
Auto Trait Implementations
impl !RefUnwindSafe for WgpuRenderContext
impl !Send for WgpuRenderContext
impl !Sync for WgpuRenderContext
impl Unpin for WgpuRenderContext
impl !UnwindSafe for WgpuRenderContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
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> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,