[−][src]Struct bevy_wgpu::renderer::WgpuRenderResourceContext
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]
&self,
command_encoder: &mut CommandEncoder,
source_buffer: BufferId,
source_offset: u64,
destination_buffer: BufferId,
destination_offset: u64,
size: u64
)
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]
&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
)
pub fn create_bind_group_layout(&self, descriptor: &BindGroupDescriptor)
[src]
Trait Implementations
impl Clone for WgpuRenderResourceContext
[src]
fn clone(&self) -> WgpuRenderResourceContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl RenderResourceContext for WgpuRenderResourceContext
[src]
fn create_sampler(&self, sampler_descriptor: &SamplerDescriptor) -> SamplerId
[src]
fn create_texture(&self, texture_descriptor: TextureDescriptor) -> TextureId
[src]
fn create_buffer(&self, buffer_info: BufferInfo) -> BufferId
[src]
fn create_buffer_with_data(
&self,
buffer_info: BufferInfo,
data: &[u8]
) -> BufferId
[src]
&self,
buffer_info: BufferInfo,
data: &[u8]
) -> BufferId
fn remove_buffer(&self, buffer: BufferId)
[src]
fn remove_texture(&self, texture: TextureId)
[src]
fn remove_sampler(&self, sampler: SamplerId)
[src]
fn create_shader_module_from_source(
&self,
shader_handle: Handle<Shader>,
shader: &Shader
)
[src]
&self,
shader_handle: Handle<Shader>,
shader: &Shader
)
fn create_shader_module(
&self,
shader_handle: Handle<Shader>,
shaders: &Assets<Shader>
)
[src]
&self,
shader_handle: Handle<Shader>,
shaders: &Assets<Shader>
)
fn create_swap_chain(&self, window: &Window)
[src]
fn next_swap_chain_texture(&self, window: &Window) -> TextureId
[src]
fn drop_swap_chain_texture(&self, texture: TextureId)
[src]
fn drop_all_swap_chain_textures(&self)
[src]
fn set_asset_resource_untyped(
&self,
handle: HandleUntyped,
render_resource: RenderResourceId,
index: usize
)
[src]
&self,
handle: HandleUntyped,
render_resource: RenderResourceId,
index: usize
)
fn get_asset_resource_untyped(
&self,
handle: HandleUntyped,
index: usize
) -> Option<RenderResourceId>
[src]
&self,
handle: HandleUntyped,
index: usize
) -> Option<RenderResourceId>
fn remove_asset_resource_untyped(&self, handle: HandleUntyped, index: usize)
[src]
fn create_render_pipeline(
&self,
pipeline_handle: Handle<PipelineDescriptor>,
pipeline_descriptor: &PipelineDescriptor,
shaders: &Assets<Shader>
)
[src]
&self,
pipeline_handle: Handle<PipelineDescriptor>,
pipeline_descriptor: &PipelineDescriptor,
shaders: &Assets<Shader>
)
fn bind_group_descriptor_exists(
&self,
bind_group_descriptor_id: BindGroupDescriptorId
) -> bool
[src]
&self,
bind_group_descriptor_id: BindGroupDescriptorId
) -> bool
fn create_bind_group(
&self,
bind_group_descriptor_id: BindGroupDescriptorId,
bind_group: &BindGroup
)
[src]
&self,
bind_group_descriptor_id: BindGroupDescriptorId,
bind_group: &BindGroup
)
fn clear_bind_groups(&self)
[src]
fn get_buffer_info(&self, buffer: BufferId) -> Option<BufferInfo>
[src]
fn write_mapped_buffer(
&self,
id: BufferId,
range: Range<u64>,
write: &mut dyn FnMut(&mut [u8], &dyn RenderResourceContext)
)
[src]
&self,
id: BufferId,
range: Range<u64>,
write: &mut dyn FnMut(&mut [u8], &dyn RenderResourceContext)
)
fn map_buffer(&self, id: BufferId)
[src]
fn unmap_buffer(&self, id: BufferId)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WgpuRenderResourceContext
impl Send for WgpuRenderResourceContext
impl Sync for WgpuRenderResourceContext
impl Unpin for WgpuRenderResourceContext
impl !UnwindSafe for WgpuRenderResourceContext
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> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,