odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.1k stars 550 forks source link

wgpu_native fixes #3825

Closed Valakor closed 4 days ago

Valakor commented 4 days ago
  1. LogCallback should have the "c" calling convention and takes a userdata pointer like other callbacks.
  2. DevicePoll's wrappedSubmissionIndex argument is an optional in/out parameter. When not specified the function does not query the status of any queue, but if specified the function polls the status of the passed (valid) queue. The previous wrapper method was broken since it passed a non-nil structure to the underlying API with invalid members.
  3. SupportedLimitsExtras.chain should be a ChainedStructOut to properly chain from SupportedLimits
laytan commented 4 days ago

Thanks for fixing my mistakes :wink: