File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -528,18 +528,19 @@ export class GPUTestBase extends Fixture<GPUTestSubcaseBatchState> {
528
528
*/
529
529
skipIfTextureFormatNotSupported ( ...formats : ( GPUTextureFormat | undefined ) [ ] ) {
530
530
for ( const format of formats ) {
531
- if ( format ) {
531
+ if ( ! format ) {
532
+ continue ;
533
+ }
534
+ if ( format === 'bgra8unorm-srgb' ) {
532
535
if ( isCompatibilityDevice ( this . device ) ) {
533
- if ( format === 'bgra8unorm-srgb' ) {
534
- this . skip ( `texture format '${ format } is not supported` ) ;
535
- }
536
+ this . skip ( `texture format '${ format } ' is not supported` ) ;
536
537
}
537
- const feature = getRequiredFeatureForTextureFormat ( format ) ;
538
- this . skipIf (
539
- ! ! feature && ! this . device . features . has ( feature ) ,
540
- `texture format '${ format } ' requires feature: '${ feature } `
541
- ) ;
542
538
}
539
+ const feature = getRequiredFeatureForTextureFormat ( format ) ;
540
+ this . skipIf (
541
+ ! ! feature && ! this . device . features . has ( feature ) ,
542
+ `texture format '${ format } ' requires feature: '${ feature } `
543
+ ) ;
543
544
}
544
545
}
545
546
You can’t perform that action at this time.
0 commit comments