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

Limit the value passed into @align? #5150

@dj2

Description

@dj2

Should we limit the maximum value that @align will accept?

For backends like GLSL we need to insert padding members into the structure in order to fill out the alignment, when a user does something like @align(738197508) that can take a while to generate the giant GLSL shader.

If so, what's a good value for that limit? 16k, 32k?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions