Skip to content

Commit

Permalink
refactor: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillerRaptor committed Sep 6, 2024
1 parent f1477de commit a9f31a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 0 additions & 2 deletions crates/hyper_rhi/src/d3d12/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ use windows::{
D3D12_RESOURCE_DIMENSION_BUFFER,
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS,
D3D12_RESOURCE_FLAG_NONE,
D3D12_RESOURCE_STATE_COMMON,
D3D12_RESOURCE_STATE_COPY_DEST,
D3D12_RESOURCE_STATE_GENERIC_READ,
D3D12_RESOURCE_STATE_UNORDERED_ACCESS,
D3D12_SHADER_RESOURCE_VIEW_DESC,
D3D12_SHADER_RESOURCE_VIEW_DESC_0,
D3D12_SRV_DIMENSION_BUFFER,
Expand Down
16 changes: 1 addition & 15 deletions crates/hyper_rhi/src/d3d12/graphics_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use gpu_allocator::{
AllocatorDebugSettings,
};
use windows::{
core::{Interface, PCSTR},
core::Interface,
Win32::{
Foundation::HANDLE,
Graphics::{
Expand All @@ -29,23 +29,13 @@ use windows::{
ID3D12CommandQueue,
ID3D12Debug6,
ID3D12Device,
ID3D12DeviceRemovedExtendedDataSettings1,
ID3D12Fence,
ID3D12GraphicsCommandList,
ID3D12InfoQueue1,
ID3D12RootSignature,
D3D12_COMMAND_LIST_TYPE_DIRECT,
D3D12_COMMAND_QUEUE_DESC,
D3D12_COMMAND_QUEUE_FLAG_NONE,
D3D12_DRED_ENABLEMENT_FORCED_ON,
D3D12_FENCE_FLAG_NONE,
D3D12_INFO_QUEUE_FILTER,
D3D12_MESSAGE_CALLBACK_IGNORE_FILTERS,
D3D12_MESSAGE_CATEGORY,
D3D12_MESSAGE_ID,
D3D12_MESSAGE_SEVERITY,
D3D12_MESSAGE_SEVERITY_CORRUPTION,
D3D12_MESSAGE_SEVERITY_ERROR,
D3D12_ROOT_CONSTANTS,
D3D12_ROOT_PARAMETER1,
D3D12_ROOT_PARAMETER1_0,
Expand All @@ -59,16 +49,12 @@ use windows::{
CreateDXGIFactory2,
IDXGIAdapter4,
IDXGIFactory7,
IDXGIInfoQueue,
DXGI_ADAPTER_FLAG,
DXGI_ADAPTER_FLAG_NONE,
DXGI_ADAPTER_FLAG_SOFTWARE,
DXGI_CREATE_FACTORY_DEBUG,
DXGI_CREATE_FACTORY_FLAGS,
DXGI_DEBUG_ALL,
DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE,
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION,
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR,
DXGI_PRESENT,
},
},
Expand Down

0 comments on commit a9f31a6

Please sign in to comment.