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

Allow using a (float32-filterable 2d single level) texture view for an externalTexture binding. #4504

@Kangz

Description

@Kangz

This is an idea that has been raised by some developers using WebGPU for a video effects pipeline. They have shaders that depending on the configuration of the processing graph take in a GPUExternalTexture for the binding (because it is the source video) or a GPUTextureView (because it is an intermediate node of the graph). It would be most convenient for them if a GPUTextureView with the right properties (float32-filterable, 2D, single subresource) could be used for an externalTexture binding.

In terms of implementation, this path should most likely trivial to support because aside from the change in createBindGroup, we expect that GPUExternalTexture should already support some form of RGBA data as some software videos will certainly use that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions