[PATCH vkd3d 1/3] vkd3d-shader: Add shader_dump_to_buffer helper function.