mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Remove readonly storage textures
Bug: dawn:1025 Change-Id: I1759639142589470e278b4906d9cad5cb485f9a5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/63743 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
a6394ddc07
commit
c389182758
@@ -67,26 +67,8 @@ namespace {
|
||||
encoder.Finish();
|
||||
}
|
||||
|
||||
// It is valid to has multiple read from a subresource and one single write into another
|
||||
// subresource
|
||||
{
|
||||
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, bgl, {{0, samplerView}});
|
||||
|
||||
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}});
|
||||
|
||||
wgpu::CommandEncoder encoder = device.CreateCommandEncoder();
|
||||
wgpu::RenderPassEncoder pass = encoder.BeginRenderPass(&renderPassDesc);
|
||||
pass.SetBindGroup(0, bindGroup);
|
||||
pass.SetBindGroup(1, bindGroup1);
|
||||
pass.EndPass();
|
||||
encoder.Finish();
|
||||
}
|
||||
// It is not currently possible to test that it is valid to have multiple reads from a
|
||||
// subresource while there is a single write in another subresource.
|
||||
|
||||
// It is invalid to read and write into the same subresources
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user