Struct wgpu_core::device::Device [−][src]
pub struct Device<A: Api> { /* fields omitted */ }
Expand description
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)