Add GPUResourceMapMode.NoWait flag to control buffer data reading

c68b75a298
This commit is contained in:
Wojtek Figat
2025-07-30 08:42:26 +02:00
parent c68b75a298
commit 8fcbef863e
4 changed files with 12 additions and 5 deletions

View File

@@ -340,8 +340,15 @@ API_ENUM(Attributes="Flags") enum class GPUResourceMapMode
/// The resource is mapped for reading and writing.
/// </summary>
ReadWrite = Read | Write,
/// <summary>
/// Flag that indicates mapping should fail with no data if the resource is still used by the GPU. Otherwise, CPU will wait for the GPU execution.
/// </summary>
NoWait = 0x04,
};
DECLARE_ENUM_OPERATORS(GPUResourceMapMode);
/// <summary>
/// Primitives types.
/// </summary>