Fix uploading volume texture data to GPU in D3D12

This commit is contained in:
Wojciech Figat
2022-03-18 17:55:35 +01:00
parent 8cca7f884b
commit 8d0a779ff4
2 changed files with 10 additions and 10 deletions

View File

@@ -141,9 +141,8 @@ struct DynamicAllocation
}
/// <summary>
/// Returns true if allocation is invalid
/// Returns true if allocation is invalid.
/// </summary>
/// <returns>True if allocation in invalid</returns>
bool IsInvalid() const
{
return CPUAddress == nullptr || Size == 0 || Page == nullptr;