mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
macOS: Workaround for MoltenVK stride limitation (#534)
This commit is contained in:
parent
79e731d9b4
commit
a3476c7b7c
6 changed files with 57 additions and 3 deletions
|
@ -459,8 +459,7 @@ void PipelineCompiler::InitVertexInputState(const LatteContextRegister& latteReg
|
|||
VkVertexInputBindingDescription entry{};
|
||||
#if BOOST_OS_MACOS
|
||||
if (bufferStride % 4 != 0) {
|
||||
forceLog_printf("MoltenVK error: vertex stride was %d, expected multiple of 4", bufferStride);
|
||||
bufferStride = 0;
|
||||
bufferStride = bufferStride + (4-(bufferStride % 4));
|
||||
}
|
||||
#endif
|
||||
entry.stride = bufferStride;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue