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

Proposal: "auto" layout algorithm should be able to generate any layout #4956

@kainino0x

Description

@kainino0x

Currently the "auto" layout algorithm makes a few assumptions about what layout to generate, which means if those assumptions are wrong for your application, you're forced to use a explicit layout. At least the following aren't achievable - not sure if I'm missing any:

  1. "non-filtering" samplers (would be partially but not entirely fixed by Change layout: 'auto' algorithm so it doesn't generate invalid bindGroupLayouts #4952)
    • and "unfilterable-float" bindings to go with them

Also the following, but I believe they don't matter because of auto layout exclusivity (EDIT: however they become important with #4957!):

  1. "float" when there are no usages with a sampler (it picks "unfilterable-float")
  2. "depth" when the shader type is non-depth (texture_2d<f32> etc.)

Metadata

Metadata

Assignees

Labels

apiWebGPU APIproposalwgslWebGPU Shading Language Issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions