Skip to main content

alpha2_native_gpu/
context.rs

1//! Device identity shared by decode and render imports.
2
3/// Stable identity of a native GPU device for cache and import validation.
4#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
5pub struct NativeGpuIdentity {
6    /// Backend-specific physical-device identity.
7    pub physical_device: u64,
8    /// Logical-device identity. Handles from different values cannot be mixed.
9    pub device: u64,
10    /// Monotonic epoch changed whenever the render device is recreated.
11    pub epoch: u64,
12}