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

Allow 2d-array texture view as renderable texture view #4607

@haoxli

Description

@haoxli

Currently a renderable texture view is a 2d or 3d texture view which arrayLayerCount is 1.

But using a 2d-array texture view with arrayLayerCount 1 in color attachments also be valid in D3D12, Vulkan and Metal. And by default, createView() without specifying a dimension on a 2d texture with more than one layer will create a 2d-array GPUTextureView, even if an arrayLayerCount of 1 is specified.

So 2d-array texture view with arrayLayerCount 1 also can be a renderable texture view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIapi resolvedResolved - waiting for a change to the API specificationneeds-cts-issueThis change requires tests (or would need tests if accepted), but may not have a CTS issue filed yetproposal

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions