#[cfg(all(native, feature = "renderdoc"))] pub(super) mod renderdoc;
pubmod db { pubmod amd { pubconst VENDOR: u32 = 0x1002;
} pubmod apple { pubconst VENDOR: u32 = 0x106B;
} pubmod arm { pubconst VENDOR: u32 = 0x13B5;
} pubmod broadcom { pubconst VENDOR: u32 = 0x14E4;
} pubmod imgtec { pubconst VENDOR: u32 = 0x1010;
} pubmod intel { pubconst VENDOR: u32 = 0x8086; pubconst DEVICE_KABY_LAKE_MASK: u32 = 0x5900; pubconst DEVICE_SKY_LAKE_MASK: u32 = 0x1900;
} pubmod mesa { // Mesa does not actually have a PCI vendor id. // // To match Vulkan, we use the VkVendorId for Mesa in the gles backend so that lavapipe (Vulkan) and // llvmpipe (OpenGL) have the same vendor id. pubconst VENDOR: u32 = 0x10005;
} pubmod nvidia { pubconst VENDOR: u32 = 0x10DE;
} pubmod qualcomm { pubconst VENDOR: u32 = 0x5143;
}
}
/// Maximum binding size for the shaders that only support `i32` indexing. /// Interestingly, the index itself can't reach that high, because the minimum /// element size is 4 bytes, but the compiler toolchain still computes the /// offset at some intermediate point, internally, as i32. pubconst MAX_I32_BINDING_SIZE: u32 = 1 << 31;
// Get the copy size at a specific mipmap level. This doesn't make most sense, // since the copy extents are provided *for* a mipmap level to start with. // But backends use `CopyExtent` more sparingly, and this piece is shared. pubfn at_mip_level(&self, level: u32) -> Self { Self {
width: (self.width >> level).max(1),
height: (self.height >> level).max(1),
depth: (self.depth >> level).max(1),
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.