This is the same as nir_get_buffer_size but geared towards UBOs instead of SSBOs. The new intrinsic is useful in Vulkan backends that need to add bound checks on buffer accesses to honor the robust buffer access feature.
f4c754bcd13 nir: add a nir_get_ubo_size intrinsic
src/compiler/nir/nir_intrinsics.py | 2 ++
1 file changed, 2 insertions(+)