in Vulkan

Spec minimums (what you can rely on everywhere)

Limit1.0–1.3 required1.4 required
maxPushConstantsSize128 bytes256 bytes
maxUniformBufferRange16384 (16 KB)65536 (64 KB)
maxStorageBufferRange134217728 (2²⁷, 128 MB)unchanged
https://docs.vulkan.org/refpages/latest/refpages/source/Required_Limits.html

in DirectX

LimitValueConstant / source
Root constants (max)256 bytes64 DWORDs, root signature budget
Root constant granularity4 bytes1 DWORD each
Constant buffer (max)65536 bytes (64 KB)D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096 × 16 B
Constant buffer alignment256 bytesD3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT
Structured / raw buffer (max)no documented limit—
Structured / raw buffer alignment16 bytesD3D12_RAW_UAV_SRV_BYTE_ALIGNMENT = 16
Typed buffer view (max texels)134217728 (2²⁷)D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27
Resource placement alignment65536 bytes (64 KB)D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT

https://learn.microsoft.com/en-us/windows/win32/direct3d12/hardware-support https://learn.microsoft.com/en-us/windows/win32/direct3d12/root-signature-limits