diff --git a/Cargo.toml b/Cargo.toml index 1063f5d08..393b6cb19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,4 @@ bitflags = "1" [dependencies.winapi] version = "0.3" -features = ["dxgi1_2","dxgi1_3","dxgi1_4","d3d12","d3d12sdklayers","d3dcommon","d3dcompiler","dxgiformat","synchapi","winerror"] \ No newline at end of file +features = ["dxgi1_2","dxgi1_3","dxgi1_4","d3d12","d3d12sdklayers","d3dcommon","d3dcompiler","dxgiformat","synchapi","winerror"] diff --git a/src/debug.rs b/src/debug.rs index 450beeac7..f614a27fa 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -6,7 +6,7 @@ use D3DResult; pub type Debug = WeakPtr; impl Debug { - pub fn get_debug_interface() -> D3DResult { + pub fn get_interface() -> D3DResult { let mut debug = Debug::null(); let hr = unsafe { d3d12::D3D12GetDebugInterface(&d3d12sdklayers::ID3D12Debug::uuidof(), debug.mut_void()) @@ -15,7 +15,7 @@ impl Debug { (debug, hr) } - pub fn enable_debug_layer(&self) { + pub fn enable_layer(&self) { unsafe { self.EnableDebugLayer() } } } diff --git a/src/dxgi.rs b/src/dxgi.rs index 1dade86b8..ad8b91e44 100644 --- a/src/dxgi.rs +++ b/src/dxgi.rs @@ -116,7 +116,7 @@ impl Factory4 { (factory, hr) } - pub fn as2(&self) -> Factory2 { + pub fn as_factory2(&self) -> Factory2 { unsafe { Factory2::from_raw(self.as_mut_ptr() as *mut _) } } @@ -144,13 +144,13 @@ impl SwapChain { } impl SwapChain1 { - pub fn as0(&self) -> SwapChain { + pub fn as_swapchain0(&self) -> SwapChain { unsafe { SwapChain::from_raw(self.as_mut_ptr() as *mut _) } } } impl SwapChain3 { - pub fn as0(&self) -> SwapChain { + pub fn as_swapchain0(&self) -> SwapChain { unsafe { SwapChain::from_raw(self.as_mut_ptr() as *mut _) } }