wgpu-types documentation pass

This commit is contained in:
Connor Fitzgerald 2020-06-15 01:53:00 -04:00
parent fc2dd481b2
commit 15d0db8828
3 changed files with 463 additions and 27 deletions

3
Cargo.lock generated
View File

@ -484,8 +484,7 @@ dependencies = [
[[package]]
name = "gfx-memory"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2eed6cda674d9cd4d92229102dbd544292124533d236904f987e9afab456137"
source = "git+https://github.com/gfx-rs/gfx-extras?rev=438353c3f75368c12024ad2fc03cbeb15f351fd9#438353c3f75368c12024ad2fc03cbeb15f351fd9"
dependencies = [
"fxhash",
"gfx-hal",

View File

@ -219,20 +219,20 @@ impl AdapterInfo {
}
}
/// Supported physical device types
/// Supported physical device types.
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "trace", derive(Serialize))]
#[cfg_attr(feature = "replay", derive(Deserialize))]
pub enum DeviceType {
/// Other
/// Other.
Other,
/// Integrated
/// Integrated GPU with shared CPU/GPU memory.
IntegratedGpu,
/// Discrete
/// Discrete GPU with separate CPU/GPU memory.
DiscreteGpu,
/// Virtual / Hosted
/// Virtual / Hosted.
VirtualGpu,
/// Cpu / Software Rendering
/// Cpu / Software Rendering.
Cpu,
}

File diff suppressed because it is too large Load Diff