mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Residency 4: Add Facilities For Budgeting Device Memory
Use D3D12's QueryDeviceVideoMemoryInfo to get the OS-determined process budget. Also introduces an export for reserving some amount of process memory - which keeps Dawn from using the entire process's budget. Bug: dawn:193 Change-Id: I6c17bd703d7cb24759bcee89c03add46944fec8c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/16383 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
971a6233c2
commit
1f0596818d
@@ -38,6 +38,9 @@ namespace dawn_native { namespace d3d12 {
|
||||
uint64_t acquireMutexKey;
|
||||
};
|
||||
|
||||
DAWN_NATIVE_EXPORT uint64_t SetExternalMemoryReservation(WGPUDevice device,
|
||||
uint64_t requestedReservationSize);
|
||||
|
||||
// Note: SharedHandle must be a handle to a texture object.
|
||||
DAWN_NATIVE_EXPORT WGPUTexture
|
||||
WrapSharedHandle(WGPUDevice device, const ExternalImageDescriptorDXGISharedHandle* descriptor);
|
||||
|
||||
Reference in New Issue
Block a user