diff --git a/docs/index.md b/docs/index.md index e4329265..63fc9ad4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,3 +23,12 @@ In order to build Obliteration from source make sure you have the following prer - `Desktop development with C++` workload is required - [Windows Terminal](https://aka.ms/terminal) - You can use a classic `Command Prompt` but make sure you enable [ANSI escape sequences](https://stackoverflow.com/q/16755142/1829232) + +## AArch64 + +- Rust on the latest nightly channel + - You can install with `rustup toolchain install nightly` +- Rust std source for nightly + - You can install with `rustup component add rust-src --toolchain nightly` +- Rust `aarch64-unknown-none-softfloat` target + - You can install with `rustup target add aarch64-unknown-none-softfloat` diff --git a/gui/src/graphics/metal/mod.rs b/gui/src/graphics/metal/mod.rs index 2211e95f..66596c0b 100644 --- a/gui/src/graphics/metal/mod.rs +++ b/gui/src/graphics/metal/mod.rs @@ -43,8 +43,8 @@ impl GraphicsBuilder for MetalBuilder { } impl super::PhysicalDevice for metal::Device { - fn id(&self) -> &[u8] { - todo!() + fn id(&self) -> Vec { + self.deref().registry_id().to_ne_bytes().into() } fn name(&self) -> &str { diff --git a/gui/src/graphics/mod.rs b/gui/src/graphics/mod.rs index 10d91aed..0dbf5b38 100644 --- a/gui/src/graphics/mod.rs +++ b/gui/src/graphics/mod.rs @@ -28,7 +28,7 @@ pub trait GraphicsBuilder: 'static { /// Represents a graphics hardware. pub trait PhysicalDevice: Sized { - fn id(&self) -> &[u8]; + fn id(&self) -> Vec; fn name(&self) -> &str; } diff --git a/gui/src/graphics/vulkan/mod.rs b/gui/src/graphics/vulkan/mod.rs index f1c1e01a..c851729a 100644 --- a/gui/src/graphics/vulkan/mod.rs +++ b/gui/src/graphics/vulkan/mod.rs @@ -171,8 +171,8 @@ pub struct PhysicalDevice { } impl super::PhysicalDevice for PhysicalDevice { - fn id(&self) -> &[u8] { - &self.id + fn id(&self) -> Vec { + self.id.into() } fn name(&self) -> &str {