mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Clarify TROUBLES
This commit is contained in:
parent
1643682d9b
commit
b155b5bae4
@ -1,5 +1,7 @@
|
||||
# Troubles encountered with Rust during the making of this library
|
||||
|
||||
- Lack of plugins means that you have to use a build script to compile your shaders instead of inlining them directly where they are used.
|
||||
|
||||
- [No way to create dynamic-sized arrays on the stack](https://github.com/rust-lang/rfcs/issues/618). 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.
|
||||
@ -14,4 +16,5 @@
|
||||
|
||||
- https://github.com/rust-lang/rust/issues/29328
|
||||
|
||||
- HKTs would make for a nicer API.
|
||||
- Some trait implementations have an associated type that looks like `type T = (Arc<Foo>, Arc<Bar>);`. HKTs would allow this parameter to take
|
||||
references to the Arcs instead, and avoid having to clone them.
|
||||
|
Loading…
Reference in New Issue
Block a user