[D3D12] Increase shared memory tile heap size to 16 MB so we don't allocate too many of them
This commit is contained in:
parent
7d80b5ae0d
commit
6d9225e84c
|
@ -74,8 +74,8 @@ class SharedMemory {
|
|||
// D3D resource tiles are 64 KB in size.
|
||||
static constexpr uint32_t kTileSizeLog2 = 16;
|
||||
static constexpr uint32_t kTileSize = 1 << kTileSizeLog2;
|
||||
// Heaps are 4 MB, so not too many of them are allocated.
|
||||
static constexpr uint32_t kHeapSizeLog2 = 22;
|
||||
// Heaps are 16 MB, so not too many of them are allocated.
|
||||
static constexpr uint32_t kHeapSizeLog2 = 24;
|
||||
static constexpr uint32_t kHeapSize = 1 << kHeapSizeLog2;
|
||||
// Resident portions of the tiled buffer.
|
||||
ID3D12Heap* heaps_[kBufferSize >> kHeapSizeLog2] = {};
|
||||
|
|
Loading…
Reference in New Issue