pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn new_shader_library( &self, desc: LibraryDesc<'_>, ) -> Result<Library, ShaderLibraryError>
pub fn new_compute_pipeline( &self, desc: ComputePipelineDesc<'_>, ) -> Result<ComputePipeline, PipelineError>
pub fn new_render_pipeline( &self, desc: RenderPipelineDesc<'_>, ) -> Result<RenderPipeline, PipelineError>
pub fn new_buffer(&self, desc: BufferDesc<'_>) -> Buffer
pub fn new_buffer_init(&self, desc: BufferInitDesc<'_>) -> Buffer
pub fn new_image(&self, desc: ImageDesc<'_>) -> Image
pub fn new_sampler(&self, desc: SamplerDesc) -> Sampler
pub fn new_surface( &self, window: &impl HasWindowHandle, display: &impl HasDisplayHandle, ) -> Result<Surface, SurfaceError>
pub fn new_fake_surface(&self, image: Image) -> Result<Surface, SurfaceError>
pub fn new_blas(&self, desc: BlasDesc) -> Blas
pub fn new_tlas(&self, desc: TlasDesc) -> Tlas
Trait Implementations§
impl Eq for Device
Auto Trait Implementations§
impl !RefUnwindSafe for Device
impl !UnwindSafe for Device
impl Freeze for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.