Skip to content

Commit

Permalink
refactor(dx12): remove unused root_signature arg. from `Device::cre…
Browse files Browse the repository at this point in the history
…ate_command_signature`
  • Loading branch information
ErichDonGubler committed Sep 25, 2023
1 parent 5aed866 commit 8e841b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions d3d12/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ impl Device {

pub fn create_command_signature(
&self,
root_signature: RootSignature,
arguments: &[IndirectArgument],
stride: u32,
node_mask: NodeMask,
Expand All @@ -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(),
)
Expand Down
3 changes: 0 additions & 3 deletions wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,20 @@ impl super::Device {
cmd_signatures: super::CommandSignatures {
draw: raw
.create_command_signature(
d3d12::RootSignature::null(),
&[d3d12::IndirectArgument::draw()],
mem::size_of::<wgt::DrawIndirectArgs>() as u32,
0,
)
.into_device_result("Command (draw) signature creation")?,
draw_indexed: raw
.create_command_signature(
d3d12::RootSignature::null(),
&[d3d12::IndirectArgument::draw_indexed()],
mem::size_of::<wgt::DrawIndexedIndirectArgs>() as u32,
0,
)
.into_device_result("Command (draw_indexed) signature creation")?,
dispatch: raw
.create_command_signature(
d3d12::RootSignature::null(),
&[d3d12::IndirectArgument::dispatch()],
mem::size_of::<wgt::DispatchIndirectArgs>() as u32,
0,
Expand Down

0 comments on commit 8e841b9

Please sign in to comment.