commit | 69c63aae7336dd1d45102b80825c1e8d920e5c18 | [log] [tgz] |
---|---|---|
author | Kyle Charbonneau <kylechar@google.com> | Mon Apr 14 11:32:35 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 14 11:32:35 2025 -0700 |
tree | b3a3c7854e18aa33a27fbb8e839d3a9b89c95296 | |
parent | bbbb9afcfa263e109ef2372f785141852bd7bb2f [diff] |
Allow changing Vulkan allocator heap block size The Vulkan ResourceMemoryAllocator defaults to a 8mb block size. That's significantly different than VMA heap block size of 64kb used by VMA with Ganesh/Vulkan. Graphite/Dawn/Vulkan wants to configure this similarly so add a chainable struct wgpu::DawnDeviceAllocatorControl that allows configuring the heap block size. Bug: 407730048 Change-Id: Ib08f1010bf7be2014d8859631bd0848f79b49f98 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/235614 Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Kyle Charbonneau <kylechar@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.