libretro / beetle-psx-libretro

Standalone port/fork of Mednafen PSX to the Libretro API.
GNU General Public License v2.0
309 stars 131 forks source link

Fix Vulkan renderer on Metal. #885

Closed warmenhoven closed 1 year ago

warmenhoven commented 1 year ago

Vertex attribute binding strides must be aligned to 4 bytes, so says MoltenVK. So we'll create the quad as R32G32_SFLOAT instead of R8G8_SNORM.

Also when running a debug build of the core in a debug build of retroarch in the debugger, the dynamic linker gets very confused about which spirv-cross functions to call. The easiest way to give it a clue is to reduce the exported symbol list.

Also fix the debug build on Apple.