Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Maximum uniform buffer size/alignment in GPULimits #487

@magcius

Description

@magcius

For portability, it's common to need to know the maximum size and alignment of uniform buffers. Alignment is most often 256 on NVIDIA devices due to hardware limitations, but much lower on most other GPU vendors.

I use these limits when allocating uniform buffers in my platform layer (they're fetchable in GL, too), so it would be helpful to have them in WebGPU as well.

https://vulkan.gpuinfo.org/displaydevicelimit.php?name=minUniformBufferOffsetAlignment
https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxUniformBufferRange

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions