Deprecate readonly storage textures

Bug: dawn:1025
Change-Id: Ie799507b534d983959d44b573436bb5421162150
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/59841
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
Corentin Wallez
2021-07-28 18:00:56 +00:00
committed by Dawn LUCI CQ
parent b550c143c0
commit 52201303f3
12 changed files with 326 additions and 104 deletions

View File

@@ -72,9 +72,11 @@ namespace {
{
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, bgl, {{0, samplerView}});
wgpu::BindGroupLayout bgl1 = utils::MakeBindGroupLayout(
device, {{0, wgpu::ShaderStage::Fragment, wgpu::StorageTextureAccess::ReadOnly,
kFormat}});
wgpu::BindGroupLayout bgl1;
EXPECT_DEPRECATION_WARNING(
bgl1 = utils::MakeBindGroupLayout(
device, {{0, wgpu::ShaderStage::Fragment,
wgpu::StorageTextureAccess::ReadOnly, kFormat}}));
wgpu::BindGroup bindGroup1 = utils::MakeBindGroup(device, bgl1, {{0, samplerView}});