summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/Win32/Graphics/DXCore
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:21 +0000
commit4e8199b572f2035b7749cba276ece3a26630d23e (patch)
treef09feeed6a0fe39d027b1908aa63ea6b35e4b631 /vendor/windows-sys/src/Windows/Win32/Graphics/DXCore
parentAdding upstream version 1.66.0+dfsg1. (diff)
downloadrustc-4e8199b572f2035b7749cba276ece3a26630d23e.tar.xz
rustc-4e8199b572f2035b7749cba276ece3a26630d23e.zip
Adding upstream version 1.67.1+dfsg1.upstream/1.67.1+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/Graphics/DXCore')
-rw-r--r--vendor/windows-sys/src/Windows/Win32/Graphics/DXCore/mod.rs94
1 files changed, 47 insertions, 47 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/Graphics/DXCore/mod.rs b/vendor/windows-sys/src/Windows/Win32/Graphics/DXCore/mod.rs
index 865339c64..3fd1abf01 100644
--- a/vendor/windows-sys/src/Windows/Win32/Graphics/DXCore/mod.rs
+++ b/vendor/windows-sys/src/Windows/Win32/Graphics/DXCore/mod.rs
@@ -1,37 +1,16 @@
-#[link(name = "windows")]
+#[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] };
-#[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
- }
-}
+pub const _FACDXCORE: u32 = 2176u32;
#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
pub type DXCoreAdapterPreference = u32;
#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
@@ -78,6 +57,48 @@ pub type DXCoreAdapterState = u32;
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 {
@@ -108,25 +129,4 @@ impl ::core::clone::Clone for DXCoreHardwareIDParts {
}
}
#[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;
-pub type IDXCoreAdapter = *mut ::core::ffi::c_void;
-pub type IDXCoreAdapterFactory = *mut ::core::ffi::c_void;
-pub type IDXCoreAdapterList = *mut ::core::ffi::c_void;
-#[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)>;
-#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
-pub const _FACDXCORE: u32 = 2176u32;