mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Rename "extension" to "feature"
This CL renames "extension" to "feature" to follow WebGPU. It still supports both. A future Chromium CL will pick this change, then all "extension" occurrences will be removed. Change-Id: I070e32d7ae042f9b846df01f200b39f6741a0a14 Bug: dawn:1149 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/65664 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
bf8c40b4f1
commit
3f689a4c5a
@@ -533,9 +533,9 @@ namespace {
|
||||
ASSERT_DEVICE_ERROR(device.CreateTexture(&descriptor));
|
||||
}
|
||||
|
||||
// Test that the creation of a texture with BC format will fail when the extension
|
||||
// Test that the creation of a texture with BC format will fail when the feature
|
||||
// textureCompressionBC is not enabled.
|
||||
TEST_F(TextureValidationTest, UseBCFormatWithoutEnablingExtension) {
|
||||
TEST_F(TextureValidationTest, UseBCFormatWithoutEnablingFeature) {
|
||||
for (wgpu::TextureFormat format : utils::kBCFormats) {
|
||||
wgpu::TextureDescriptor descriptor = CreateDefaultTextureDescriptor();
|
||||
descriptor.format = format;
|
||||
@@ -543,9 +543,9 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
// Test that the creation of a texture with ETC2 format will fail when the extension
|
||||
// Test that the creation of a texture with ETC2 format will fail when the feature
|
||||
// textureCompressionETC2 is not enabled.
|
||||
TEST_F(TextureValidationTest, UseETC2FormatWithoutEnablingExtension) {
|
||||
TEST_F(TextureValidationTest, UseETC2FormatWithoutEnablingFeature) {
|
||||
for (wgpu::TextureFormat format : utils::kETC2Formats) {
|
||||
wgpu::TextureDescriptor descriptor = CreateDefaultTextureDescriptor();
|
||||
descriptor.format = format;
|
||||
@@ -553,9 +553,9 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
// Test that the creation of a texture with ASTC format will fail when the extension
|
||||
// Test that the creation of a texture with ASTC format will fail when the feature
|
||||
// textureCompressionASTC is not enabled.
|
||||
TEST_F(TextureValidationTest, UseASTCFormatWithoutEnablingExtension) {
|
||||
TEST_F(TextureValidationTest, UseASTCFormatWithoutEnablingFeature) {
|
||||
for (wgpu::TextureFormat format : utils::kASTCFormats) {
|
||||
wgpu::TextureDescriptor descriptor = CreateDefaultTextureDescriptor();
|
||||
descriptor.format = format;
|
||||
@@ -569,8 +569,8 @@ namespace {
|
||||
protected:
|
||||
WGPUDevice CreateTestDevice() override {
|
||||
dawn_native::DeviceDescriptor descriptor;
|
||||
descriptor.requiredExtensions = {"texture_compression_bc", "texture-compression-etc2",
|
||||
"texture-compression-astc"};
|
||||
descriptor.requiredFeatures = {"texture_compression_bc", "texture-compression-etc2",
|
||||
"texture-compression-astc"};
|
||||
return adapter.CreateDevice(&descriptor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user