Use GetBindGroupLayout in ComputeCopyStorageBufferTests
Bug: dawn:276 Change-Id: I66291eec6b36e6d3318d6bd01fd891f354bb2be3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14022 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
ca5f61f9ed
commit
016f3060a3
|
@ -28,18 +28,10 @@ class ComputeCopyStorageBufferTests : public DawnTest {
|
|||
};
|
||||
|
||||
void ComputeCopyStorageBufferTests::BasicTest(const char* shader) {
|
||||
auto bgl = utils::MakeBindGroupLayout(
|
||||
device, {
|
||||
{0, wgpu::ShaderStage::Compute, wgpu::BindingType::StorageBuffer},
|
||||
{1, wgpu::ShaderStage::Compute, wgpu::BindingType::StorageBuffer},
|
||||
});
|
||||
|
||||
// Set up shader and pipeline
|
||||
auto module = utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, shader);
|
||||
auto pl = utils::MakeBasicPipelineLayout(device, &bgl);
|
||||
|
||||
wgpu::ComputePipelineDescriptor csDesc;
|
||||
csDesc.layout = pl;
|
||||
csDesc.computeStage.module = module;
|
||||
csDesc.computeStage.entryPoint = "main";
|
||||
|
||||
|
@ -70,7 +62,7 @@ void ComputeCopyStorageBufferTests::BasicTest(const char* shader) {
|
|||
dst.SetSubData(0, sizeof(zero), zero.data());
|
||||
|
||||
// Set up bind group and issue dispatch
|
||||
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, bgl,
|
||||
wgpu::BindGroup bindGroup = utils::MakeBindGroup(device, pipeline.GetBindGroupLayout(0),
|
||||
{
|
||||
{0, src, 0, kNumUints * sizeof(uint32_t)},
|
||||
{1, dst, 0, kNumUints * sizeof(uint32_t)},
|
||||
|
|
Loading…
Reference in New Issue