diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs b/vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs index ba04ad76b..83335c9aa 100644 --- a/vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs @@ -1,9 +1,12 @@ -#[link(name = "windows")] +#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Graphics_Direct3D11on12\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Direct3D11\"`*"] #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Direct3D11"))] pub fn D3D11On12CreateDevice(pdevice: ::windows_sys::core::IUnknown, flags: u32, pfeaturelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevels: u32, ppcommandqueues: *const ::windows_sys::core::IUnknown, numqueues: u32, nodemask: u32, ppdevice: *mut super::Direct3D11::ID3D11Device, ppimmediatecontext: *mut super::Direct3D11::ID3D11DeviceContext, pchosenfeaturelevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> ::windows_sys::core::HRESULT; } +pub type ID3D11On12Device = *mut ::core::ffi::c_void; +pub type ID3D11On12Device1 = *mut ::core::ffi::c_void; +pub type ID3D11On12Device2 = *mut ::core::ffi::c_void; #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Direct3D11on12\"`*"] pub struct D3D11_RESOURCE_FLAGS { @@ -18,9 +21,6 @@ impl ::core::clone::Clone for D3D11_RESOURCE_FLAGS { *self } } -pub type ID3D11On12Device = *mut ::core::ffi::c_void; -pub type ID3D11On12Device1 = *mut ::core::ffi::c_void; -pub type ID3D11On12Device2 = *mut ::core::ffi::c_void; #[doc = "*Required features: `\"Win32_Graphics_Direct3D11on12\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Direct3D11\"`*"] #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Direct3D11"))] pub type PFN_D3D11ON12_CREATE_DEVICE = ::core::option::Option<unsafe extern "system" fn(param0: ::windows_sys::core::IUnknown, param1: u32, param2: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevels: u32, param4: *const ::windows_sys::core::IUnknown, numqueues: u32, param6: u32, param7: *mut super::Direct3D11::ID3D11Device, param8: *mut super::Direct3D11::ID3D11DeviceContext, param9: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> ::windows_sys::core::HRESULT>; |