Open kainino0x opened 8 years ago
Thoughts on how to make a nice relatively-rustic FFI interface:
VkResult
definitions) without over-involved namespacing.
impl
in each extension will inject the variants into the "enum" namespace.&
, |
, etc. for each type. Again, no nice debug printing.&
and |
can be implemented for every permutation of FooFlag
and FooFlags
. The FooFlag
is just a struct(u32) with associated constants (similar to above); FooFlags
is also a struct(u32), but must be constructed from FooFlag
values.
vk_*.h
? ...*KHR
) into the appropriate modules.