Fix MSVC build error due to implicit descriptor heap offset cast.
BUG=dawn:233 Change-Id: Ia42d7e99df910f245b7c78be16b7916c0730e8a9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11960 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
b629c50a20
commit
bc8e7ea286
|
@ -72,7 +72,8 @@ namespace dawn_native { namespace d3d12 {
|
|||
? RingBufferAllocator::kInvalidOffset
|
||||
: heapInfo->allocator.Allocate(count, pendingSerial);
|
||||
if (startOffset != RingBufferAllocator::kInvalidOffset) {
|
||||
return DescriptorHeapHandle{heapInfo->heap, mSizeIncrements[type], startOffset};
|
||||
return DescriptorHeapHandle{heapInfo->heap, mSizeIncrements[type],
|
||||
static_cast<uint32_t>(startOffset)};
|
||||
}
|
||||
|
||||
// If the pool has no more space, replace the pool with a new one of the specified size
|
||||
|
|
Loading…
Reference in New Issue