pub struct WasdkDevice { /* private fields */ }Expand description
The device behind a wgpu::Device from this backend: device.as_custom::<WasdkDevice>().
Implementations§
Source§impl WasdkDevice
impl WasdkDevice
Sourcepub fn gpu_device(&self) -> &GpuDevice
pub fn gpu_device(&self) -> &GpuDevice
The wasi device, which a view’s canvas context is configured against and a hardware buffer is imported on as a texture.
Trait Implementations§
Source§impl Debug for WasdkDevice
impl Debug for WasdkDevice
Source§impl DeviceInterface for WasdkDevice
impl DeviceInterface for WasdkDevice
fn features(&self) -> Features
fn limits(&self) -> Limits
fn adapter_info(&self) -> AdapterInfo
fn create_shader_module( &self, desc: ShaderModuleDescriptor<'_>, _runtime_checks: ShaderRuntimeChecks, ) -> DispatchShaderModule
unsafe fn create_shader_module_passthrough( &self, desc: &ShaderModuleDescriptorPassthrough<'_>, ) -> DispatchShaderModule
fn create_bind_group_layout( &self, desc: &BindGroupLayoutDescriptor<'_>, ) -> DispatchBindGroupLayout
fn create_bind_group(&self, desc: &BindGroupDescriptor<'_>) -> DispatchBindGroup
fn create_pipeline_layout( &self, desc: &PipelineLayoutDescriptor<'_>, ) -> DispatchPipelineLayout
fn create_render_pipeline( &self, desc: &RenderPipelineDescriptor<'_>, ) -> DispatchRenderPipeline
fn create_mesh_pipeline( &self, _desc: &MeshPipelineDescriptor<'_>, ) -> DispatchRenderPipeline
fn create_compute_pipeline( &self, desc: &ComputePipelineDescriptor<'_>, ) -> DispatchComputePipeline
unsafe fn create_pipeline_cache( &self, _desc: &PipelineCacheDescriptor<'_>, ) -> DispatchPipelineCache
fn create_buffer(&self, desc: &BufferDescriptor<'_>) -> DispatchBuffer
fn create_texture(&self, desc: &TextureDescriptor<'_>) -> DispatchTexture
fn create_external_texture( &self, _desc: &ExternalTextureDescriptor<'_>, _planes: &[&TextureView], ) -> DispatchExternalTexture
fn create_blas( &self, _desc: &CreateBlasDescriptor<'_>, _sizes: BlasGeometrySizeDescriptors, ) -> (Option<u64>, DispatchBlas)
fn create_tlas(&self, _desc: &CreateTlasDescriptor<'_>) -> DispatchTlas
fn create_sampler(&self, desc: &SamplerDescriptor<'_>) -> DispatchSampler
fn create_query_set(&self, desc: &QuerySetDescriptor<'_>) -> DispatchQuerySet
fn create_command_encoder( &self, desc: &CommandEncoderDescriptor<'_>, ) -> DispatchCommandEncoder
fn create_render_bundle_encoder( &self, desc: &RenderBundleEncoderDescriptor<'_>, ) -> DispatchRenderBundleEncoder
fn set_device_lost_callback(&self, callback: BoxDeviceLostCallback)
fn on_uncaptured_error(&self, handler: Arc<dyn UncapturedErrorHandler>)
fn push_error_scope(&self, filter: ErrorFilter) -> u32
fn pop_error_scope(&self, index: u32) -> Pin<Box<dyn PopErrorScopeFuture>>
unsafe fn start_graphics_debugger_capture(&self)
unsafe fn stop_graphics_debugger_capture(&self)
fn poll(&self, _poll_type: PollType<u64>) -> Result<PollStatus, PollError>
fn get_internal_counters(&self) -> InternalCounters
fn generate_allocator_report(&self) -> Option<AllocatorReport>
fn destroy(&self)
Auto Trait Implementations§
impl !Freeze for WasdkDevice
impl Forget for WasdkDevice
impl RefUnwindSafe for WasdkDevice
impl Send for WasdkDevice
impl Sync for WasdkDevice
impl Unpin for WasdkDevice
impl UnsafeUnpin for WasdkDevice
impl UnwindSafe for WasdkDevice
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