commit | b53356e2041800b5fd4a0059a625e1db3fce989b | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Thu Sep 26 13:43:35 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 26 13:43:35 2024 +0000 |
tree | efc151a59072580c7e15d82978f9eb8b7ce1e19f | |
parent | efcc72e0f20919a13194aa5583f53a0b0772002e [diff] |
[Vulkan] Hardcode max possible number of Vk slots for YCbCr samplers YCbCr samplers can take up multiple Vk descriptor slots. There is a recommended Vulkan API for querying how many slots will be taken for a given AHB, but it's unclear how to populate the parameters to be sure of getting the correct answer. As the spec for that API says that the maximum number of slots possibly taken would be the maximum number of planes of a given format that will be sampled via YCbCr sampling, we simply hardcode that maximum number here. Bug: dawn:2476 Change-Id: Ie567ca7efc19fe908e2b6e9ab862ee19332820b0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/208274 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org>
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.