forked from gpuweb/cts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename extension->feature in capability_info
- Loading branch information
Showing
13 changed files
with
48 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const description = `copyTexturetoTexture operation tests | ||
TODO([email protected]): support all WebGPU texture formats. | ||
`; | ||
TODO([email protected]): support all WebGPU texture formats. | ||
`; | ||
|
||
import { poptions, params } from '../../../../common/framework/params_builder.js'; | ||
import { makeTestGroup } from '../../../../common/framework/test_group.js'; | ||
|
@@ -415,7 +415,7 @@ g.test('color_textures,compressed,non_array') | |
) | ||
.fn(async t => { | ||
const { textureSize, format, copyBoxOffsets, srcCopyLevel, dstCopyLevel } = t.params; | ||
await t.selectDeviceOrSkipTestCase(kCompressedTextureFormatInfo[format].extension); | ||
await t.selectDeviceOrSkipTestCase(kCompressedTextureFormatInfo[format].feature); | ||
|
||
t.DoCopyTextureToTextureTest( | ||
textureSize.srcTextureSize, | ||
|
@@ -498,7 +498,7 @@ g.test('color_textures,compressed,array') | |
) | ||
.fn(async t => { | ||
const { textureSize, format, copyBoxOffsets, srcCopyLevel, dstCopyLevel } = t.params; | ||
await t.selectDeviceOrSkipTestCase(kCompressedTextureFormatInfo[format].extension); | ||
await t.selectDeviceOrSkipTestCase(kCompressedTextureFormatInfo[format].feature); | ||
|
||
t.DoCopyTextureToTextureTest( | ||
textureSize.srcTextureSize, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ Test Plan: (TODO([email protected]): add tests on 1D/3D textures) | |
|
||
import { poptions, params } from '../../../../../common/framework/params_builder.js'; | ||
import { makeTestGroup } from '../../../../../common/framework/test_group.js'; | ||
import { assert } from '../../../../../common/framework/util/util.js'; | ||
import { | ||
kAllTextureFormatInfo, | ||
kAllTextureFormats, | ||
|
@@ -272,7 +271,7 @@ g.test('texture_format_equality') | |
const { srcFormat, dstFormat } = t.params; | ||
const srcFormatInfo = kAllTextureFormatInfo[srcFormat]; | ||
const dstFormatInfo = kAllTextureFormatInfo[dstFormat]; | ||
await t.selectDeviceOrSkipTestCase([srcFormatInfo.extension, dstFormatInfo.extension]); | ||
await t.selectDeviceOrSkipTestCase([srcFormatInfo.feature, dstFormatInfo.feature]); | ||
|
||
const kTextureSize = { width: 16, height: 16, depthOrArrayLayers: 1 }; | ||
|
||
|
@@ -336,8 +335,7 @@ g.test('depth_stencil_copy_restrictions') | |
srcCopyLevel, | ||
dstCopyLevel, | ||
} = t.params; | ||
|
||
await t.selectDeviceOrSkipTestCase(kAllTextureFormatInfo[format].extension); | ||
await t.selectDeviceOrSkipTestCase(kAllTextureFormatInfo[format].feature); | ||
|
||
const kMipLevelCount = 3; | ||
|
||
|
@@ -524,11 +522,10 @@ Test the validations on the member 'aspect' of GPUImageCopyTexture in CopyTextur | |
) | ||
.fn(async t => { | ||
const { format, sourceAspect, destinationAspect } = t.params; | ||
await t.selectDeviceOrSkipTestCase(kAllTextureFormatInfo[format].feature); | ||
|
||
const kTextureSize = { width: 16, height: 8, depthOrArrayLayers: 1 }; | ||
|
||
await t.selectDeviceOrSkipTestCase(kAllTextureFormatInfo[format].extension); | ||
|
||
const srcTexture = t.device.createTexture({ | ||
size: kTextureSize, | ||
format, | ||
|
@@ -591,10 +588,7 @@ g.test('copy_ranges_with_compressed_texture_formats') | |
) | ||
.fn(async t => { | ||
const { format, copyBoxOffsets, srcCopyLevel, dstCopyLevel } = t.params; | ||
|
||
const feature = kAllTextureFormatInfo[format].extension; | ||
assert(feature !== undefined); | ||
await t.selectDeviceOrSkipTestCase(feature); | ||
await t.selectDeviceOrSkipTestCase(kAllTextureFormatInfo[format].feature); | ||
|
||
const kTextureSize = { width: 60, height: 48, depthOrArrayLayers: 3 }; | ||
const kMipLevelCount = 4; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.