这是indexloc提供的服务,不要输入任何密码
Skip to content

Compat: validating out "2d" of more than 1 layer #4378

@kainino0x

Description

@kainino0x

The issue of validating out "2d" of more than 1 layer is not mentioned in this proposal. It seems like it came up in the meeting.

In other words,

createTexture({
  size: [1,1,2],  // so 2 or more layers
  textureBindingViewDimension: '2d',  // the default would be '2d-array' but user choose '2d'
  ...
});

Should fail with a validation error

I think similarly

createTexture({
  size: [1,1,2],  // not 6 layers
  textureBindingViewDimension: 'cube',
  ...
});

should fail with a validation error. This would already fail at view creation time but seems like it should fail here because GL can't create a 2 layer cube map which is what's being asking for here

Originally posted by @greggman in #4365 (comment)

Metadata

Metadata

Assignees

Labels

compatWebGPU Compatibility Mode

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions