#[unsafe(no_mangle)]
#[used]
#[expect(
unreachable_pub,
reason = "the pub visibility is what exports the symbol; nothing in the crate names it"
)]
pub static D3D12SDKVersion: u32 = 619;
#[unsafe(no_mangle)]
#[used]
#[expect(
unreachable_pub,
reason = "the pub visibility is what exports the symbol; nothing in the crate names it"
)]
pub static D3D12SDKPath: &[u8; 9] = b".\\D3D12\\\0";
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn the_sdk_path_names_the_bundled_subdirectory() {
let path = std::str::from_utf8(&D3D12SDKPath[..]).expect("ascii");
let dir = path
.strip_suffix('\0')
.unwrap_or_else(|| panic!("{path:?} must be NUL terminated"));
assert!(
dir.starts_with(".\\"),
"{dir:?} must be relative to the exe"
);
assert!(dir.ends_with('\\'), "{dir:?} must end in a separator");
assert_eq!(&dir[2..dir.len() - 1], "D3D12");
}
}