Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Jan 8, 2025
1 parent 3b92a37 commit 4e590cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/webgpu/api/operation/adapter/requestDevice.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ g.test('always_returns_device')
!adapterExtensions.isCompatibilityMode &&
// Current version of Compat design, as of this writing.
adapterExtensions.featureLevel !== 'compatibility' &&
// An unlanded proposed change to the Compat design, but it doesn't hurt to just check.
// An as-yet-unlanded proposed change to the Compat design, but for now it doesn't hurt
// to just check. Unlanded PR: https://github.com/gpuweb/gpuweb/pull/5036
!device.features.has('webgpu-core'),
'must not get a Compatibility adapter if not requested'
);
Expand Down
3 changes: 2 additions & 1 deletion src/webgpu/capability_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,8 @@ export function getDefaultLimits(featureLevel: FeatureLevel) {
}

export function getDefaultLimitsForAdapter(adapter: GPUAdapter) {
// MAINTENANCE_TODO: Remove casts when GPUAdapter IDL has isCompatibilityMode.
// MAINTENANCE_TODO: Remove casts once we have a standardized way to do this
// (see https://github.com/gpuweb/gpuweb/pull/5037#issuecomment-2576110161).
const adapterExtensions = adapter as unknown as {
isCompatibilityMode?: boolean;
featureLevel?: string;
Expand Down

0 comments on commit 4e590cf

Please sign in to comment.