mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Update majority of tests to use new BindGroupLayoutEntry format
Converts most of the tests to use the new layout, with the exception of a few that are dependent on additional Dawn changes before the conversion can happen. The deprecation warning is not enabled yet due to these remaining changes. Bug: dawn:527 Change-Id: Idcfd9fc873756f5a9f88de2ce9ab65c66b79bf39 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/35582 Commit-Queue: Brandon Jones <bajones@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
307ece1630
commit
b31cd871ad
@@ -53,7 +53,7 @@ namespace {
|
||||
const wgpu::TextureView& samplerView) {
|
||||
// Create bind group
|
||||
wgpu::BindGroupLayout bgl = utils::MakeBindGroupLayout(
|
||||
device, {{0, wgpu::ShaderStage::Vertex, wgpu::BindingType::SampledTexture}});
|
||||
device, {{0, wgpu::ShaderStage::Vertex, wgpu::TextureSampleType::Float}});
|
||||
|
||||
utils::ComboRenderPassDescriptor renderPassDesc({renderView});
|
||||
|
||||
@@ -73,10 +73,8 @@ namespace {
|
||||
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, bgl, {{0, samplerView}});
|
||||
|
||||
wgpu::BindGroupLayout bgl1 = utils::MakeBindGroupLayout(
|
||||
device,
|
||||
{{0, wgpu::ShaderStage::Fragment, wgpu::BindingType::ReadonlyStorageTexture,
|
||||
false, 0, wgpu::TextureViewDimension::Undefined,
|
||||
wgpu::TextureComponentType::Float, kFormat}});
|
||||
device, {{0, wgpu::ShaderStage::Fragment, wgpu::StorageTextureAccess::ReadOnly,
|
||||
kFormat}});
|
||||
|
||||
wgpu::BindGroup bindGroup1 = utils::MakeBindGroup(device, bgl1, {{0, samplerView}});
|
||||
|
||||
@@ -104,10 +102,8 @@ namespace {
|
||||
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, bgl, {{0, samplerView}});
|
||||
|
||||
wgpu::BindGroupLayout bgl1 = utils::MakeBindGroupLayout(
|
||||
device,
|
||||
{{0, wgpu::ShaderStage::Fragment, wgpu::BindingType::WriteonlyStorageTexture,
|
||||
false, 0, wgpu::TextureViewDimension::Undefined,
|
||||
wgpu::TextureComponentType::Float, kFormat}});
|
||||
device, {{0, wgpu::ShaderStage::Fragment, wgpu::StorageTextureAccess::WriteOnly,
|
||||
kFormat}});
|
||||
wgpu::BindGroup bindGroup1 = utils::MakeBindGroup(device, bgl1, {{0, samplerView}});
|
||||
|
||||
wgpu::CommandEncoder encoder = device.CreateCommandEncoder();
|
||||
|
||||
Reference in New Issue
Block a user