Skip to content

Incorrect max_push_constant_size in the docs #8335

@Bromles

Description

@Bromles

The docs for the Limits struct say to expect max_push_contant_size to be 256 bytes on the DX12 backend.

But I encountered a 128 bytes limit on a relatively modern iGPU in an AMD Ryzen 7 PRO 4750U CPU on Windows 11

I propose changing this line in the docs to be identical to the Vulkan backend - 128-256 bytes

Since it's a really tiny change, I've done so in my fork and can open a PR if you'd like to accept it
https://github.com/Bromles/wgpu/blob/trunk/wgpu-types/src/lib.rs#L679

I will attach the full wgpu-info -vv logs from my machine, Adapter 1 is the DX12 hardware with the limits mentioned above (not to be confused with Adapter 2, which is the software DX12 implementation that also has only a 128-byte push constant size limit)

wgpu-info-win11.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: documentationDocumentation for crate items, public or privatetype: bugSomething isn't working

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions