wgpu::backend::wgpu_core

Struct CoreDevice

source
pub struct CoreDevice {
    pub(crate) context: ContextWgpuCore,
    id: DeviceId,
    error_sink: Arc<Mutex<ErrorSinkRaw>>,
    features: Features,
}
Available on wgpu_core only.

Fields§

§context: ContextWgpuCore§id: DeviceId§error_sink: Arc<Mutex<ErrorSinkRaw>>§features: Features

Trait Implementations§

source§

impl Debug for CoreDevice

source§

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

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

impl DeviceInterface for CoreDevice

source§

fn features(&self) -> Features

source§

fn limits(&self) -> Limits

source§

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

source§

unsafe fn create_shader_module_spirv( &self, desc: &ShaderModuleDescriptorSpirV<'_>, ) -> 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_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_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, device_lost_callback: Box<dyn FnOnce(DeviceLostReason, String) + Send + 'static>, )

source§

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

source§

fn push_error_scope(&self, filter: ErrorFilter)

source§

fn pop_error_scope(&self) -> Pin<Box<dyn PopErrorScopeFuture>>

source§

fn start_capture(&self)

source§

fn stop_capture(&self)

source§

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

source§

fn get_internal_counters(&self) -> InternalCounters

source§

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

source§

fn destroy(&self)

source§

impl Drop for CoreDevice

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Hash for CoreDevice

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for CoreDevice

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for CoreDevice

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for CoreDevice

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for CoreDevice

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> 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
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

source§

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

source§

impl<T> WasmNotSendSync for T

source§

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