fsr_sys/
lib.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(clippy::excessive_precision)]
5
6type widechar = widestring::WideChar;
7
8include!("bindings.rs");
9
10#[cfg(feature = "vulkan")]
11pub mod vk {
12    use crate::*;
13
14    type VkPhysicalDevice = u64;
15    type VkDevice = u64;
16    type VkInstance = u64;
17    type VkCommandBuffer = u64;
18    type PFN_vkGetDeviceProcAddr = *const std::ffi::c_void;
19    type PFN_vkGetInstanceProcAddr = *const std::ffi::c_void;
20    type PFN_vkEnumerateDeviceExtensionProperties = *const std::ffi::c_void;
21    type VkBuffer = u64;
22    type VkImage = u64;
23    type VkImageView = u64;
24    type VkFormat = i32;
25    type VkImageLayout = i32;
26
27    include!("vk_bindings.rs");
28}
29
30#[cfg(feature = "d3d12")]
31pub mod d3d12 {
32
33    use crate::*;
34    type ID3D12CommandList = std::ffi::c_void;
35    type ID3D12Device = std::ffi::c_void;
36    type ID3D12Resource = std::ffi::c_void;
37
38    type UINT = u32;
39
40    include!("d3d12_bindings.rs");
41}