pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn as_raw(&self) -> *mut WGPUDeviceImpl
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§
impl Send for Device
impl Sync for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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