commit | 9d92f31f21cf857882b34d270770c47a92047e4c | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Jul 28 00:36:36 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 28 00:36:36 2021 +0000 |
tree | ef336c015eb66eff3f04f902e11aba22705fb24f | |
parent | d6af6bd7f352610952bc2f122e1b0d4a55d69090 [diff] |
Vulkan: Enable sampleRateShading for WGSL builtin variable [[sample_index]] This patch enables VkPhysicalDeviceFeatures.sampleRateShading as is required by the SPIR-V Capability (SampleRateShading) for the implementation of WGSL built-in variable [[sample_index]] (gl_SampleID). Without enabling smapleRateShading on the creation of VkDevice the Vulkan validation layer will generate below error message: Warning: Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01091 ] Object 0: handle = xxx, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa7bb8db6 | vkCreateShaderModule(): The SPIR-V Capability (SampleRateShading) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied. BUG=tint:471, dawn:802 TEST=dawn_end2end_tests Change-Id: Id0c91fa48dfae37b2548ee9f3922d93dfa1da5d9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/59900 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.