[][src]Struct bevy_wgpu::renderer::WgpuRenderResourceContext

pub struct WgpuRenderResourceContext {
    pub device: Arc<Device>,
    pub resources: WgpuResources,
}

Fields

device: Arc<Device>resources: WgpuResources

Implementations

impl WgpuRenderResourceContext[src]

pub fn new(device: Arc<Device>) -> Self[src]

pub fn set_window_surface(&self, window_id: WindowId, surface: Surface)[src]

pub fn copy_buffer_to_buffer(
    &self,
    command_encoder: &mut CommandEncoder,
    source_buffer: BufferId,
    source_offset: u64,
    destination_buffer: BufferId,
    destination_offset: u64,
    size: u64
)
[src]

pub fn copy_buffer_to_texture(
    &self,
    command_encoder: &mut CommandEncoder,
    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]

pub fn create_bind_group_layout(&self, descriptor: &BindGroupDescriptor)[src]

Trait Implementations

impl Clone for WgpuRenderResourceContext[src]

impl RenderResourceContext for WgpuRenderResourceContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,