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

Out of bounds texture access with textureLoad with swizzle #5437

@greggman

Description

@greggman

The WGSL spec says

If the logical texel address is invalid, the built-in function returns one of:

The data for some texel within bounds of the texture

A vector (0,0,0,0) or (0,0,0,1) of the appropriate type for non-depth textures

0.0 for depth textures

Should that change to take texture-component-swizzle into account?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions