Skip to main content

WasdkDevice

Struct WasdkDevice 

Source
pub struct WasdkDevice { /* private fields */ }
Expand description

The device behind a wgpu::Device from this backend: device.as_custom::<WasdkDevice>().

Implementations§

Source§

impl WasdkDevice

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DeviceInterface for WasdkDevice

Source§

fn features(&self) -> Features

Source§

fn limits(&self) -> Limits

Source§

fn adapter_info(&self) -> AdapterInfo

Source§

fn create_shader_module( &self, desc: ShaderModuleDescriptor<'_>, _runtime_checks: ShaderRuntimeChecks, ) -> DispatchShaderModule

Source§

unsafe fn create_shader_module_passthrough( &self, desc: &ShaderModuleDescriptorPassthrough<'_>, ) -> DispatchShaderModule

Source§

fn create_bind_group_layout( &self, desc: &BindGroupLayoutDescriptor<'_>, ) -> DispatchBindGroupLayout

Source§

fn create_bind_group(&self, desc: &BindGroupDescriptor<'_>) -> DispatchBindGroup

Source§

fn create_pipeline_layout( &self, desc: &PipelineLayoutDescriptor<'_>, ) -> DispatchPipelineLayout

Source§

fn create_render_pipeline( &self, desc: &RenderPipelineDescriptor<'_>, ) -> DispatchRenderPipeline

Source§

fn create_mesh_pipeline( &self, _desc: &MeshPipelineDescriptor<'_>, ) -> DispatchRenderPipeline

Source§

fn create_compute_pipeline( &self, desc: &ComputePipelineDescriptor<'_>, ) -> DispatchComputePipeline

Source§

unsafe fn create_pipeline_cache( &self, _desc: &PipelineCacheDescriptor<'_>, ) -> DispatchPipelineCache

Source§

fn create_buffer(&self, desc: &BufferDescriptor<'_>) -> DispatchBuffer

Source§

fn create_texture(&self, desc: &TextureDescriptor<'_>) -> DispatchTexture

Source§

fn create_external_texture( &self, _desc: &ExternalTextureDescriptor<'_>, _planes: &[&TextureView], ) -> DispatchExternalTexture

Source§

fn create_blas( &self, _desc: &CreateBlasDescriptor<'_>, _sizes: BlasGeometrySizeDescriptors, ) -> (Option<u64>, DispatchBlas)

Source§

fn create_tlas(&self, _desc: &CreateTlasDescriptor<'_>) -> DispatchTlas

Source§

fn create_sampler(&self, desc: &SamplerDescriptor<'_>) -> DispatchSampler

Source§

fn create_query_set(&self, desc: &QuerySetDescriptor<'_>) -> DispatchQuerySet

Source§

fn create_command_encoder( &self, desc: &CommandEncoderDescriptor<'_>, ) -> DispatchCommandEncoder

Source§

fn create_render_bundle_encoder( &self, desc: &RenderBundleEncoderDescriptor<'_>, ) -> DispatchRenderBundleEncoder

Source§

fn set_device_lost_callback(&self, callback: BoxDeviceLostCallback)

Source§

fn on_uncaptured_error(&self, handler: Arc<dyn UncapturedErrorHandler>)

Source§

fn push_error_scope(&self, filter: ErrorFilter) -> u32

Source§

fn pop_error_scope(&self, index: u32) -> Pin<Box<dyn PopErrorScopeFuture>>

Source§

unsafe fn start_graphics_debugger_capture(&self)

Source§

unsafe fn stop_graphics_debugger_capture(&self)

Source§

fn poll(&self, _poll_type: PollType<u64>) -> Result<PollStatus, PollError>

Source§

fn get_internal_counters(&self) -> InternalCounters

Source§

fn generate_allocator_report(&self) -> Option<AllocatorReport>

Source§

fn destroy(&self)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CommonTraits for T
where T: AsAny + Any + Debug + WasmNotSendSync,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,