Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 12, 2024
1 parent b6f05cf commit 11c9521
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ g.test('createPipeline,at_over')
(bindingCombination === 'fragment' ||
bindingCombination === 'vertexAndFragmentWithPossibleVertexStageOverflow' ||
bindingCombination === 'vertexAndFragmentWithPossibleFragmentStageOverflow') &&
testValue > device.limits.maxStorageBuffersInFragmentStage,
testValue > (device.limits.maxStorageBuffersInFragmentStage ?? actualLimit),
`can not test ${testValue} bindings as it is more than maxStorageBuffersInFragmentStage(${device.limits.maxStorageBuffersInFragmentStage})`
);

t.skipIf(
(bindingCombination === 'vertex' ||
bindingCombination === 'vertexAndFragmentWithPossibleVertexStageOverflow' ||
bindingCombination === 'vertexAndFragmentWithPossibleFragmentStageOverflow') &&
testValue > device.limits.maxStorageBuffersInVertexStage,
testValue > (device.limits.maxStorageBuffersInVertexStage ?? actualLimit),
`can not test ${testValue} bindings as it is more than maxStorageBuffersInVertexStage(${device.limits.maxStorageBuffersInVertexStage})`
);

Expand Down
8 changes: 4 additions & 4 deletions src/webgpu/gpu_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ import { reifyExtent3D, reifyOrigin3D } from './util/unions.js';
declare global {
// MAINTENANCE_TODO: remove once added to @webgpu/types
interface GPUSupportedLimits {
readonly maxStorageBuffersInFragmentStage: number;
readonly maxStorageTexturesInFragmentStage: number;
readonly maxStorageBuffersInVertexStage: number;
readonly maxStorageTexturesInVertexStage: number;
readonly maxStorageBuffersInFragmentStage?: number;
readonly maxStorageTexturesInFragmentStage?: number;
readonly maxStorageBuffersInVertexStage?: number;
readonly maxStorageTexturesInVertexStage?: number;
}
}

Expand Down

0 comments on commit 11c9521

Please sign in to comment.