Struct wgpu_core::device::Device [−][src]
Structure describing a logical device. Some members are internally mutable,
stored behind mutexes.
TODO: establish clear order of locking for these:
mem_allocator
, desc_allocator
, life_tracke
, trackers
,
render_passes
, pending_writes
, trace
.
Currently, the rules are:
life_tracker
is locked afterhub.devices
, enforced by the type systemself.trackers
is locked last (unenforced)self.trace
is locked last (unenforced)
Implementations
impl<B: Backend> Device<B>
[src]
pub fn borrow_pending_writes(&mut self) -> &mut B::CommandBuffer
[src]
Trait Implementations
impl<B: Backend> Access<BindGroup<B>> for Device<B>
[src]
impl<B: Backend> Access<BindGroupLayout<B>> for Device<B>
[src]
impl<B: Backend> Access<Buffer<B>> for Device<B>
[src]
impl<B: Backend> Access<CommandBuffer<B>> for Device<B>
[src]
impl<B: Backend> Access<ComputePipeline<B>> for Device<B>
[src]
impl<B: Backend> Access<Device<B>> for Root
[src]
impl<B: Backend> Access<Device<B>> for Surface
[src]
impl<B: Backend> Access<Device<B>> for Adapter<B>
[src]
impl<B: Backend> Access<PipelineLayout<B>> for Device<B>
[src]
impl<B: Backend> Access<QuerySet<B>> for Device<B>
[src]
impl<B: Backend> Access<RenderBundle> for Device<B>
[src]
impl<B: Backend> Access<RenderPipeline<B>> for Device<B>
[src]
impl<B: Backend> Access<Sampler<B>> for Device<B>
[src]
impl<B: Backend> Access<ShaderModule<B>> for Device<B>
[src]
impl<B: Backend> Access<SwapChain<B>> for Device<B>
[src]
impl<B: Backend> Access<Texture<B>> for Device<B>
[src]
impl<B: Backend> Access<TextureView<B>> for Device<B>
[src]
impl<B: Debug + Backend> Debug for Device<B> where
B::Device: Debug,
[src]
B::Device: Debug,
impl<B: Backend> Resource for Device<B>
[src]
Auto Trait Implementations
impl<B> !RefUnwindSafe for Device<B>
impl<B> Send for Device<B>
impl<B> Sync for Device<B>
impl<B> Unpin for Device<B> where
<B as Backend>::Buffer: Unpin,
<B as Backend>::CommandBuffer: Unpin,
<B as Backend>::CommandPool: Unpin,
<B as Backend>::CommandQueue: Unpin,
<B as Backend>::ComputePipeline: Unpin,
<B as Backend>::DescriptorPool: Unpin,
<B as Backend>::DescriptorSet: Unpin,
<B as Backend>::DescriptorSetLayout: Unpin,
<B as Backend>::Device: Unpin,
<B as Backend>::Fence: Unpin,
<B as Backend>::Framebuffer: Unpin,
<B as Backend>::GraphicsPipeline: Unpin,
<B as Backend>::Image: Unpin,
<B as Backend>::ImageView: Unpin,
<B as Backend>::Memory: Unpin,
<B as Backend>::PipelineLayout: Unpin,
<B as Backend>::QueryPool: Unpin,
<B as Backend>::RenderPass: Unpin,
<B as Backend>::Sampler: Unpin,
<B as Backend>::Buffer: Unpin,
<B as Backend>::CommandBuffer: Unpin,
<B as Backend>::CommandPool: Unpin,
<B as Backend>::CommandQueue: Unpin,
<B as Backend>::ComputePipeline: Unpin,
<B as Backend>::DescriptorPool: Unpin,
<B as Backend>::DescriptorSet: Unpin,
<B as Backend>::DescriptorSetLayout: Unpin,
<B as Backend>::Device: Unpin,
<B as Backend>::Fence: Unpin,
<B as Backend>::Framebuffer: Unpin,
<B as Backend>::GraphicsPipeline: Unpin,
<B as Backend>::Image: Unpin,
<B as Backend>::ImageView: Unpin,
<B as Backend>::Memory: Unpin,
<B as Backend>::PipelineLayout: Unpin,
<B as Backend>::QueryPool: Unpin,
<B as Backend>::RenderPass: Unpin,
<B as Backend>::Sampler: Unpin,
impl<B> !UnwindSafe for Device<B>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.