mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 08:57:26 +00:00
Remove UnsafeAPI toggle for 3D texture
3D texture implementation has already been done. It's time to remove the UnsafeAPI toggle for it. Bug: dawn:547 Change-Id: Ic9e0930d7906ee5274b9e412ebacb2574744b2b3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/56480 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
This commit is contained in:
@@ -28,22 +28,6 @@ class UnsafeAPIValidationTest : public ValidationTest {
|
||||
}
|
||||
};
|
||||
|
||||
// Check that 3D Texture creation is disallowed as part of unsafe APIs.
|
||||
TEST_F(UnsafeAPIValidationTest, 3DTextureCreationDisallowed) {
|
||||
wgpu::TextureDescriptor baseDesc;
|
||||
baseDesc.size = {32, 32, 6};
|
||||
baseDesc.format = wgpu::TextureFormat::RGBA8Unorm;
|
||||
baseDesc.usage = wgpu::TextureUsage::Sampled;
|
||||
|
||||
// Control case: 2D (array) texture creation is allowed.
|
||||
device.CreateTexture(&baseDesc);
|
||||
|
||||
// 3D texture creation is disallowed.
|
||||
wgpu::TextureDescriptor texture3DDesc = baseDesc;
|
||||
texture3DDesc.dimension = wgpu::TextureDimension::e3D;
|
||||
ASSERT_DEVICE_ERROR(device.CreateTexture(&texture3DDesc));
|
||||
}
|
||||
|
||||
// Check that DrawIndexedIndirect is disallowed as part of unsafe APIs.
|
||||
TEST_F(UnsafeAPIValidationTest, DrawIndexedIndirectDisallowed) {
|
||||
// Create the index and indirect buffers.
|
||||
|
||||
Reference in New Issue
Block a user