pub struct DawnDevice { /* private fields */ }Methods from Deref<Target = Device>§
pub fn create_bind_group(&self, descriptor: &BindGroupDescriptor) -> BindGroup
pub fn create_bind_group_layout( &self, descriptor: &BindGroupLayoutDescriptor, ) -> BindGroupLayout
pub fn create_buffer(&self, descriptor: &BufferDescriptor) -> Option<Buffer>
pub fn create_error_buffer(&self, descriptor: &BufferDescriptor) -> Buffer
pub fn create_command_encoder( &self, descriptor: Option<&CommandEncoderDescriptor>, ) -> CommandEncoder
pub fn create_compute_pipeline( &self, descriptor: &ComputePipelineDescriptor, ) -> ComputePipeline
pub fn create_compute_pipeline_async( &self, descriptor: &ComputePipelineDescriptor, callback: impl FnMut(CreatePipelineAsyncStatus, Option<ComputePipeline>, String) + Send + 'static, ) -> Future
pub fn create_external_texture( &self, external_texture_descriptor: &ExternalTextureDescriptor, ) -> ExternalTexture
pub fn create_error_external_texture(&self) -> ExternalTexture
pub fn create_pipeline_layout( &self, descriptor: &PipelineLayoutDescriptor, ) -> PipelineLayout
pub fn create_query_set(&self, descriptor: &QuerySetDescriptor) -> QuerySet
pub fn create_render_pipeline_async( &self, descriptor: &RenderPipelineDescriptor, callback: impl FnMut(CreatePipelineAsyncStatus, Option<RenderPipeline>, String) + Send + 'static, ) -> Future
pub fn create_render_bundle_encoder( &self, descriptor: &RenderBundleEncoderDescriptor, ) -> RenderBundleEncoder
pub fn create_render_pipeline( &self, descriptor: &RenderPipelineDescriptor, ) -> RenderPipeline
pub fn create_sampler(&self, descriptor: Option<&SamplerDescriptor>) -> Sampler
pub fn create_shader_module( &self, descriptor: &ShaderModuleDescriptor, ) -> ShaderModule
pub fn create_error_shader_module( &self, descriptor: &ShaderModuleDescriptor, error_message: String, ) -> ShaderModule
pub fn create_texture(&self, descriptor: &TextureDescriptor) -> Texture
pub fn create_resource_table( &self, descriptor: &ResourceTableDescriptor, ) -> ResourceTable
pub fn create_error_texture(&self, descriptor: &TextureDescriptor) -> Texture
pub fn destroy(&self)
pub fn get_a_hardware_buffer_properties( &self, handle: *mut c_void, properties: &mut AHardwareBufferProperties, ) -> Status
pub fn get_limits(&self, limits: &mut Limits) -> Status
pub fn get_lost_future(&self) -> Future
pub fn has_feature(&self, feature: FeatureName) -> bool
pub fn get_features(&self, features: &mut SupportedFeatures)
pub fn get_adapter_info(&self, adapter_info: &mut AdapterInfo) -> Status
pub fn get_adapter(&self) -> Adapter
pub fn get_queue(&self) -> Queue
pub fn inject_error(&self, type: ErrorType, message: String)
pub fn force_loss(&self, type: DeviceLostReason, message: String)
pub fn tick(&self)
pub fn set_logging_callback( &self, callback: impl FnMut(LoggingType, String) + Send + 'static, )
pub fn push_error_scope(&self, filter: ErrorFilter)
pub fn pop_error_scope( &self, callback: impl FnMut(PopErrorScopeStatus, ErrorType, String) + Send + 'static, ) -> Future
pub fn set_label(&self, label: String)
pub fn validate_texture_descriptor(&self, descriptor: &TextureDescriptor)
Trait Implementations§
Source§impl Clone for DawnDevice
impl Clone for DawnDevice
Source§fn clone(&self) -> DawnDevice
fn clone(&self) -> DawnDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DawnDevice
impl Debug for DawnDevice
Source§impl Deref for DawnDevice
impl Deref for DawnDevice
Source§impl DeviceInterface for DawnDevice
impl DeviceInterface for DawnDevice
fn features(&self) -> Features
fn limits(&self) -> Limits
fn create_shader_module( &self, desc: ShaderModuleDescriptor<'_>, _shader_bound_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, device_lost_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 DawnDevice
impl RefUnwindSafe for DawnDevice
impl Send for DawnDevice
impl Sync for DawnDevice
impl Unpin for DawnDevice
impl UnsafeUnpin for DawnDevice
impl UnwindSafe for DawnDevice
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