summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs')
-rw-r--r--vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs132
1 files changed, 132 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs b/vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs
new file mode 100644
index 000000000..3fd1abf01
--- /dev/null
+++ b/vendor/windows-sys-0.42.0/src/Windows/Win32/Graphics/DXCore/mod.rs
@@ -0,0 +1,132 @@
+#[cfg_attr(windows, link(name = "windows"))]
+extern "system" {
+ #[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+ pub fn DXCoreCreateAdapterFactory(riid: *const ::windows_sys::core::GUID, ppvfactory: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
+}
+pub type IDXCoreAdapter = *mut ::core::ffi::c_void;
+pub type IDXCoreAdapterFactory = *mut ::core::ffi::c_void;
+pub type IDXCoreAdapterList = *mut ::core::ffi::c_void;
+pub const DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2353497707, data2: 30083, data3: 17677, data4: [240, 240, 107, 173, 168, 149, 175, 75] };
+pub const DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 613296128, data2: 42899, data3: 18212, data4: [171, 170, 35, 166, 222, 27, 224, 144] };
+pub const DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 211734093, data2: 12142, data3: 20225, data4: [140, 150, 232, 158, 51, 27, 71, 177] };
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const _FACDXCORE: u32 = 2176u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type DXCoreAdapterPreference = u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const Hardware: DXCoreAdapterPreference = 0u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const MinimumPower: DXCoreAdapterPreference = 1u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const HighPerformance: DXCoreAdapterPreference = 2u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type DXCoreAdapterProperty = u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const InstanceLuid: DXCoreAdapterProperty = 0u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const DriverVersion: DXCoreAdapterProperty = 1u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const DriverDescription: DXCoreAdapterProperty = 2u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const HardwareID: DXCoreAdapterProperty = 3u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const KmdModelVersion: DXCoreAdapterProperty = 4u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const ComputePreemptionGranularity: DXCoreAdapterProperty = 5u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const GraphicsPreemptionGranularity: DXCoreAdapterProperty = 6u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const DedicatedAdapterMemory: DXCoreAdapterProperty = 7u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const DedicatedSystemMemory: DXCoreAdapterProperty = 8u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const SharedSystemMemory: DXCoreAdapterProperty = 9u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AcgCompatible: DXCoreAdapterProperty = 10u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const IsHardware: DXCoreAdapterProperty = 11u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const IsIntegrated: DXCoreAdapterProperty = 12u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const IsDetachable: DXCoreAdapterProperty = 13u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const HardwareIDParts: DXCoreAdapterProperty = 14u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type DXCoreAdapterState = u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const IsDriverUpdateInProgress: DXCoreAdapterState = 0u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AdapterMemoryBudget: DXCoreAdapterState = 1u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type DXCoreNotificationType = u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AdapterListStale: DXCoreNotificationType = 0u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AdapterNoLongerValid: DXCoreNotificationType = 1u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AdapterBudgetChange: DXCoreNotificationType = 2u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const AdapterHardwareContentProtectionTeardown: DXCoreNotificationType = 3u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type DXCoreSegmentGroup = u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const Local: DXCoreSegmentGroup = 0u32;
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub const NonLocal: DXCoreSegmentGroup = 1u32;
+#[repr(C)]
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub struct DXCoreAdapterMemoryBudget {
+ pub budget: u64,
+ pub currentUsage: u64,
+ pub availableForReservation: u64,
+ pub currentReservation: u64,
+}
+impl ::core::marker::Copy for DXCoreAdapterMemoryBudget {}
+impl ::core::clone::Clone for DXCoreAdapterMemoryBudget {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[repr(C)]
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub struct DXCoreAdapterMemoryBudgetNodeSegmentGroup {
+ pub nodeIndex: u32,
+ pub segmentGroup: DXCoreSegmentGroup,
+}
+impl ::core::marker::Copy for DXCoreAdapterMemoryBudgetNodeSegmentGroup {}
+impl ::core::clone::Clone for DXCoreAdapterMemoryBudgetNodeSegmentGroup {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[repr(C)]
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub struct DXCoreHardwareID {
+ pub vendorID: u32,
+ pub deviceID: u32,
+ pub subSysID: u32,
+ pub revision: u32,
+}
+impl ::core::marker::Copy for DXCoreHardwareID {}
+impl ::core::clone::Clone for DXCoreHardwareID {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[repr(C)]
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub struct DXCoreHardwareIDParts {
+ pub vendorID: u32,
+ pub deviceID: u32,
+ pub subSystemID: u32,
+ pub subVendorID: u32,
+ pub revisionID: u32,
+}
+impl ::core::marker::Copy for DXCoreHardwareIDParts {}
+impl ::core::clone::Clone for DXCoreHardwareIDParts {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
+pub type PFN_DXCORE_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(notificationtype: DXCoreNotificationType, object: ::windows_sys::core::IUnknown, context: *const ::core::ffi::c_void)>;