[GPU] Ownership-transfer-based RT cache, 3x3 resolution scaling
The ROV path is also disabled by default because of lower performance
This commit is contained in:
@@ -19,7 +19,7 @@ namespace ui {
|
||||
namespace d3d12 {
|
||||
namespace util {
|
||||
|
||||
using DescriptorCPUGPUHandlePair =
|
||||
using DescriptorCpuGpuHandlePair =
|
||||
std::pair<D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_GPU_DESCRIPTOR_HANDLE>;
|
||||
|
||||
extern const D3D12_HEAP_PROPERTIES kHeapPropertiesDefault;
|
||||
@@ -93,6 +93,14 @@ void CreateBufferTypedUAV(ID3D12Device* device,
|
||||
ID3D12Resource* buffer, DXGI_FORMAT format,
|
||||
uint32_t num_elements, uint64_t first_element = 0);
|
||||
|
||||
// For cases where GetCopyableFootprints isn't usable (such as when the size
|
||||
// needs to be overaligned beyond the maximum texture size), providing data
|
||||
// needed to compute the copyable footprints manually.
|
||||
void GetFormatCopyInfo(DXGI_FORMAT format, uint32_t plane,
|
||||
DXGI_FORMAT& copy_format_out, uint32_t& block_width_out,
|
||||
uint32_t& block_height_out,
|
||||
uint32_t& bytes_per_block_out);
|
||||
|
||||
} // namespace util
|
||||
} // namespace d3d12
|
||||
} // namespace ui
|
||||
|
||||
Reference in New Issue
Block a user