FacticiusVir / SharpVk

C# Bindings for the Vulkan API & SPIR-V
MIT License
147 stars 18 forks source link

Fixed length fields of input structs are not marshalled #25

Closed FacticiusVir closed 7 years ago

FacticiusVir commented 7 years ago

There's no marshal step from the fixed-length public to interop fields generated for input structures; as these are all 2-4 items in length, it may be worth revisiting generic Vector types instead of array-to-fixed-buffer marshalling.

FacticiusVir commented 7 years ago

Generic vector types can't be used with strongly-typed pointers, so the current fix sticks with input arrays and a length validation step.