mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Change buffer-related sizes/offsets to be uint64_t
Bug: dawn:121 Change-Id: I9d88e2b2b8eff4eda98d25ae0922bc07199a69c7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5720 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
952860bf9f
commit
cf52d711fb
@@ -523,7 +523,7 @@ namespace {
|
||||
uint32_t slot = s.first;
|
||||
auto it = iPrim.attributes.find(s.second);
|
||||
if (it == iPrim.attributes.end()) {
|
||||
uint32_t zero = 0;
|
||||
uint64_t zero = 0;
|
||||
pass.SetVertexBuffers(slot, 1, &defaultBuffer, &zero);
|
||||
continue;
|
||||
}
|
||||
@@ -538,7 +538,7 @@ namespace {
|
||||
vertexCount = static_cast<uint32_t>(iAccessor.count);
|
||||
}
|
||||
const auto& oBuffer = buffers.at(iAccessor.bufferView);
|
||||
uint32_t iBufferOffset = static_cast<uint32_t>(iAccessor.byteOffset);
|
||||
uint64_t iBufferOffset = static_cast<uint64_t>(iAccessor.byteOffset);
|
||||
pass.SetVertexBuffers(slot, 1, &oBuffer, &iBufferOffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user