mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +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
@@ -115,7 +115,7 @@ namespace utils {
|
||||
|
||||
dawn::Buffer CreateBufferFromData(const dawn::Device& device,
|
||||
const void* data,
|
||||
uint32_t size,
|
||||
uint64_t size,
|
||||
dawn::BufferUsageBit usage) {
|
||||
dawn::BufferDescriptor descriptor;
|
||||
descriptor.size = size;
|
||||
@@ -234,7 +234,7 @@ namespace utils {
|
||||
}
|
||||
|
||||
dawn::BufferCopyView CreateBufferCopyView(dawn::Buffer buffer,
|
||||
uint32_t offset,
|
||||
uint64_t offset,
|
||||
uint32_t rowPitch,
|
||||
uint32_t imageHeight) {
|
||||
dawn::BufferCopyView bufferCopyView;
|
||||
@@ -319,8 +319,8 @@ namespace utils {
|
||||
|
||||
BindingInitializationHelper::BindingInitializationHelper(uint32_t binding,
|
||||
const dawn::Buffer& buffer,
|
||||
uint32_t offset,
|
||||
uint32_t size)
|
||||
uint64_t offset,
|
||||
uint64_t size)
|
||||
: binding(binding), buffer(buffer), offset(offset), size(size) {
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace utils {
|
||||
|
||||
dawn::Buffer CreateBufferFromData(const dawn::Device& device,
|
||||
const void* data,
|
||||
uint32_t size,
|
||||
uint64_t size,
|
||||
dawn::BufferUsageBit usage);
|
||||
|
||||
template <typename T>
|
||||
@@ -44,7 +44,7 @@ namespace utils {
|
||||
}
|
||||
|
||||
dawn::BufferCopyView CreateBufferCopyView(dawn::Buffer buffer,
|
||||
uint32_t offset,
|
||||
uint64_t offset,
|
||||
uint32_t rowPitch,
|
||||
uint32_t imageHeight);
|
||||
dawn::TextureCopyView CreateTextureCopyView(dawn::Texture texture,
|
||||
@@ -107,8 +107,8 @@ namespace utils {
|
||||
BindingInitializationHelper(uint32_t binding, const dawn::TextureView& textureView);
|
||||
BindingInitializationHelper(uint32_t binding,
|
||||
const dawn::Buffer& buffer,
|
||||
uint32_t offset,
|
||||
uint32_t size);
|
||||
uint64_t offset,
|
||||
uint64_t size);
|
||||
|
||||
dawn::BindGroupBinding GetAsBinding() const;
|
||||
|
||||
@@ -116,8 +116,8 @@ namespace utils {
|
||||
dawn::Sampler sampler;
|
||||
dawn::TextureView textureView;
|
||||
dawn::Buffer buffer;
|
||||
uint32_t offset = 0;
|
||||
uint32_t size = 0;
|
||||
uint64_t offset = 0;
|
||||
uint64_t size = 0;
|
||||
};
|
||||
|
||||
dawn::BindGroup MakeBindGroup(
|
||||
@@ -127,4 +127,4 @@ namespace utils {
|
||||
|
||||
} // namespace utils
|
||||
|
||||
#endif // UTILS_DAWNHELPERS_H_
|
||||
#endif // UTILS_DAWNHELPERS_H_
|
||||
|
||||
Reference in New Issue
Block a user