From 8e841b9449fc9dee242fa43a41ba4cecd8169557 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 21 Sep 2023 11:14:39 -0400 Subject: [PATCH] refactor(dx12): remove unused `root_signature` arg. from `Device::create_command_signature` --- d3d12/src/device.rs | 3 +-- wgpu-hal/src/dx12/device.rs | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/d3d12/src/device.rs b/d3d12/src/device.rs index 475fa22b50..43781c933b 100644 --- a/d3d12/src/device.rs +++ b/d3d12/src/device.rs @@ -291,7 +291,6 @@ impl Device { pub fn create_command_signature( &self, - root_signature: RootSignature, arguments: &[IndirectArgument], stride: u32, node_mask: NodeMask, @@ -307,7 +306,7 @@ impl Device { let hr = unsafe { self.CreateCommandSignature( &desc, - root_signature.as_mut_ptr(), + std::ptr::null_mut(), &d3d12::ID3D12CommandSignature::uuidof(), signature.mut_void(), ) diff --git a/wgpu-hal/src/dx12/device.rs b/wgpu-hal/src/dx12/device.rs index 590bdaded0..7dfb3e3abb 100644 --- a/wgpu-hal/src/dx12/device.rs +++ b/wgpu-hal/src/dx12/device.rs @@ -101,7 +101,6 @@ impl super::Device { cmd_signatures: super::CommandSignatures { draw: raw .create_command_signature( - d3d12::RootSignature::null(), &[d3d12::IndirectArgument::draw()], mem::size_of::() as u32, 0, @@ -109,7 +108,6 @@ impl super::Device { .into_device_result("Command (draw) signature creation")?, draw_indexed: raw .create_command_signature( - d3d12::RootSignature::null(), &[d3d12::IndirectArgument::draw_indexed()], mem::size_of::() as u32, 0, @@ -117,7 +115,6 @@ impl super::Device { .into_device_result("Command (draw_indexed) signature creation")?, dispatch: raw .create_command_signature( - d3d12::RootSignature::null(), &[d3d12::IndirectArgument::dispatch()], mem::size_of::() as u32, 0,