Skip to content

Commit

Permalink
Put common parts of texture_zero.spec.ts into a separate file
Browse files Browse the repository at this point in the history
Saw this MAINTENANCE_TODO so did it
  • Loading branch information
greggman committed Jan 25, 2024
1 parent af6c52e commit 138b023
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 546 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { assert } from '../../../../../common/util/util.js';
import { kTextureFormatInfo, EncodableTextureFormat } from '../../../../format_info.js';
import { virtualMipSize } from '../../../../util/texture/base.js';
import { CheckContents } from '../texture_zero.spec.js';

import { CheckContents } from './texture_zero_init_test.js';

export const checkContentsByBufferCopy: CheckContents = (
t,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { assert } from '../../../../../common/util/util.js';
import { kTextureFormatInfo } from '../../../../format_info.js';
import { GPUTest } from '../../../../gpu_test.js';
import { virtualMipSize } from '../../../../util/texture/base.js';
import { CheckContents } from '../texture_zero.spec.js';

import { CheckContents } from './texture_zero_init_test.js';

function makeFullscreenVertexModule(device: GPUDevice) {
return device.createShaderModule({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
getSingleDataType,
getComponentReadbackTraits,
} from '../../../../util/texture/texel_data.js';
import { CheckContents } from '../texture_zero.spec.js';

import { CheckContents } from './texture_zero_init_test.js';

export const checkContentsBySampling: CheckContents = (
t,
Expand Down
Loading

0 comments on commit 138b023

Please sign in to comment.