|
g.test('texture_state') |
|
.desc(`createView should fail if the texture is invalid (but succeed if it is destroyed)`) |
|
.paramsSubcasesOnly(u => u.combine('state', kResourceStates)) |
|
.fn(t => { |
|
const { state } = t.params; |
|
const texture = vtu.createTextureWithState(t, state); |
|
|
|
t.expectValidationError(() => { |
|
texture.createView(); |
|
}, state === 'invalid'); |
|
}); |
Shouldn't createView fail on destroyed textures like invalid textures?
spec
https://gpuweb.github.io/gpuweb/#dom-gputexture-destroyed-slot
cts/src/webgpu/api/validation/createView.spec.ts
Lines 333 to 343 in b507bd1
Shouldn't
createViewfail on destroyed textures like invalid textures?spec
https://gpuweb.github.io/gpuweb/#dom-gputexture-destroyed-slot