Fix comment that says "control case" when it isn't.
Bug: Change-Id: I414bdabeeb12ed53c0620ead80d54a1448bb95bb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/35720 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
56996023fe
commit
e0a4d8f209
|
@ -168,14 +168,14 @@ TEST_F(UnsafeAPIValidationTest, DynamicStorageBuffer) {
|
||||||
device.CreateBindGroupLayout(&desc);
|
device.CreateBindGroupLayout(&desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Control case: storage buffer with a dynamic offset is disallowed.
|
// Storage buffer with a dynamic offset is disallowed.
|
||||||
{
|
{
|
||||||
entry.type = wgpu::BindingType::StorageBuffer;
|
entry.type = wgpu::BindingType::StorageBuffer;
|
||||||
entry.hasDynamicOffset = true;
|
entry.hasDynamicOffset = true;
|
||||||
ASSERT_DEVICE_ERROR(device.CreateBindGroupLayout(&desc));
|
ASSERT_DEVICE_ERROR(device.CreateBindGroupLayout(&desc));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Control case: readonly storage buffer with a dynamic offset is disallowed.
|
// Readonly storage buffer with a dynamic offset is disallowed.
|
||||||
{
|
{
|
||||||
entry.type = wgpu::BindingType::ReadonlyStorageBuffer;
|
entry.type = wgpu::BindingType::ReadonlyStorageBuffer;
|
||||||
entry.hasDynamicOffset = true;
|
entry.hasDynamicOffset = true;
|
||||||
|
|
Loading…
Reference in New Issue