Skip to main content

SgDevice

Struct SgDevice 

Source
pub struct SgDevice(/* private fields */);

Trait Implementations§

Source§

impl Debug for SgDevice

Source§

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

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

impl DeviceInterface for SgDevice

Source§

fn features(&self) -> Features

Source§

fn limits(&self) -> Limits

Source§

fn adapter_info(&self) -> AdapterInfo

Source§

fn create_shader_module( &self, desc: ShaderModuleDescriptor<'_>, 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, cb: 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
§

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

§

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<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> CommonTraits for T
where T: AsAny + Any + Debug + WasmNotSendSync,

§

impl<T> WasmNotSend for T

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T