diff --git a/crates/hyper_rhi/src/d3d12/buffer.rs b/crates/hyper_rhi/src/d3d12/buffer.rs index 9a1da4d9..cab6ec5f 100644 --- a/crates/hyper_rhi/src/d3d12/buffer.rs +++ b/crates/hyper_rhi/src/d3d12/buffer.rs @@ -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, diff --git a/crates/hyper_rhi/src/d3d12/graphics_device.rs b/crates/hyper_rhi/src/d3d12/graphics_device.rs index a7524590..ed2c0d60 100644 --- a/crates/hyper_rhi/src/d3d12/graphics_device.rs +++ b/crates/hyper_rhi/src/d3d12/graphics_device.rs @@ -16,7 +16,7 @@ use gpu_allocator::{ AllocatorDebugSettings, }; use windows::{ - core::{Interface, PCSTR}, + core::Interface, Win32::{ Foundation::HANDLE, Graphics::{ @@ -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, @@ -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, }, },