Skip to content

Why should createView:texture_state succeed for destroyed textures #4653

@beicause

Description

@beicause

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions