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

Validating maxComputeWorkgroupStorageSize #3485

@kainino0x

Description

@kainino0x

In order to validate maxComputeWorkgroupStorageSize, we need to compute the amount of workgroup storage used by a

Naively, we could just add up the SizeOf all of the workgroup-space variables statically used by the entry point.
But in practice, I assume there will be padding between these, for alignment. How do we handle this? I don't think we control the way they are packed at all. Should we, for example, round the size of each variable up to a multiple of 32 (similar to minUniformBufferOffsetAlignment) before summing?

cc @dneto0 @alan-baker

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions