This API will be hard to implement on all backends (e.g. Vulkan) and isn't that useful other than for timing.