Revert "Fix macro to allow disabling dx12 feature. (#3590)" (#3649)

This reverts commit 110e62aed2.
This commit is contained in:
Teodor Tanasoaia
2023-04-04 15:16:31 +02:00
committed by GitHub
parent 9fa7186ede
commit 37fbae7872
3 changed files with 4 additions and 5 deletions

View File

@@ -136,7 +136,6 @@ By @cwfitzgerald in [#3610](https://github.com/gfx-rs/wgpu/pull/3610).
- Fix DXC validation issues when using a custom `dxil_path`. By @Elabajaba in [#3434](https://github.com/gfx-rs/wgpu/pull/3434)
- Use typeless formats for textures that might be viewed as srgb or non-srgb. By @teoxoy in [#3555](https://github.com/gfx-rs/wgpu/pull/3555)
- Fix conditional compilation for `dx12` feature. By @toastmod in [#3590](https://github.com/gfx-rs/wgpu/pull/3590)
#### GLES

View File

@@ -232,7 +232,7 @@ impl Context {
})
}
#[cfg(all(feature = "dx12", windows))]
#[cfg(target_os = "windows")]
pub unsafe fn create_surface_from_visual(&self, visual: *mut std::ffi::c_void) -> Surface {
let id = unsafe { self.0.instance_create_surface_from_visual(visual, ()) };
Surface {
@@ -241,7 +241,7 @@ impl Context {
}
}
#[cfg(all(feature = "dx12", windows))]
#[cfg(target_os = "windows")]
pub unsafe fn create_surface_from_surface_handle(
&self,
surface_handle: *mut std::ffi::c_void,

View File

@@ -1544,7 +1544,7 @@ impl Instance {
/// # Safety
///
/// - visual must be a valid IDCompositionVisual to create a surface upon.
#[cfg(all(feature = "dx12", windows))]
#[cfg(target_os = "windows")]
pub unsafe fn create_surface_from_visual(&self, visual: *mut std::ffi::c_void) -> Surface {
let surface = unsafe {
self.context
@@ -1566,7 +1566,7 @@ impl Instance {
/// # Safety
///
/// - surface_handle must be a valid SurfaceHandle to create a surface upon.
#[cfg(all(feature = "dx12", windows))]
#[cfg(target_os = "windows")]
pub unsafe fn create_surface_from_surface_handle(
&self,
surface_handle: *mut std::ffi::c_void,