mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
740 B
740 B
Troubles encountered with Rust during the making of this library
-
No way to create dynamic-sized arrays on the stack. A lot of Vulkan functions require passing an array of small elements (small structs or integers). Building such an array with a
Vec
can be expensive, especially when most of the time the array only contains a single element. -
No way to create a
*mut T
pointer from a*mut c_void()
and a size whenT
is unsized. This had to be implemented in a custom trait. -
Can't cast an
ImageResource
into aResource
even though the former depends on the latter.