File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,13 @@ impl InstanceError {
472
472
}
473
473
}
474
474
475
+ /// All the types and methods that make up a implementation on top of a backend.
476
+ ///
477
+ /// Only the types that have non-dyn trait bounds have methods on them. Most methods
478
+ /// are either on [`CommandEncoder`] or [`Device`].
479
+ ///
480
+ /// The api can either be used through generics (through use of this trait and associated
481
+ /// types) or dynamically through using the `Dyn*` traits.
475
482
pub trait Api : Clone + fmt:: Debug + Sized + WasmNotSendSync + ' static {
476
483
const VARIANT : wgt:: Backend ;
477
484
@@ -1806,6 +1813,10 @@ pub struct Capabilities {
1806
1813
pub downlevel : wgt:: DownlevelCapabilities ,
1807
1814
}
1808
1815
1816
+ /// An adapter with all the information needed to reason about its capabilities.
1817
+ ///
1818
+ /// These are either made by [`Instance::enumerate_adapters`] or by backend specific
1819
+ /// methods on the backend [`Instance`] or [`Adapter`].
1809
1820
#[ derive( Debug ) ]
1810
1821
pub struct ExposedAdapter < A : Api > {
1811
1822
pub adapter : A :: Adapter ,
@@ -1860,6 +1871,10 @@ pub struct AcquiredSurfaceTexture<A: Api> {
1860
1871
pub suboptimal : bool ,
1861
1872
}
1862
1873
1874
+ /// An open connection to a device and a queue.
1875
+ ///
1876
+ /// This can be created from [`Adapter::open`] or backend
1877
+ /// specific methods on the backend's [`Instance`] or [`Adapter`].
1863
1878
#[ derive( Debug ) ]
1864
1879
pub struct OpenDevice < A : Api > {
1865
1880
pub device : A :: Device ,
You can’t perform that action at this time.
0 commit comments