You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've ran into a number of issues with MoltenVK having to do with the way it emits pointers in function parameters, as C++ references instead of C-style pointers. For example this snippet:
I've ran into a number of issues with MoltenVK having to do with the way it emits pointers in function parameters, as C++ references instead of C-style pointers. For example this snippet:
gets translated as:
This leads to the following bugs:
void
are forbidden butOpTypePointer ... ... %void
is legal SPIR-V that SPIRV-Cross can't translateOpPtrToU
: Thatreinterpret_cast
above fails becauseb
is a reference and can't decay to a pointer. You'd need to take the address ofb
Here's a godbolt with a few of these problems condensed to a single sample: https://godbolt.org/z/Tanvao3aT
I'm unsure why this choice was made, perhaps it was a restriction in older Metal ?
The text was updated successfully, but these errors were encountered: