Getting basic "Hello Triangle" sample to build and run on M1-M2 mac to get started #1844
Replies: 3 comments 1 reply
-
Try posting this question to the Vulkan SDK issue list regarding the platform builds included in the SDK.
There is a Cube Demo included in MoltenVK. Once you clone from this repo, it is very straightforward to build both MoltenVK and the Cube Demo. You can build from command line, but you will need Xcode. |
Beta Was this translation helpful? Give feedback.
-
Is it a good idea to use MoltenVK and macOS as a primary platform for development or is it better to do it on Windows and just port to macOS? Is there anything missing on macOS compared to developing on Windows? |
Beta Was this translation helpful? Give feedback.
-
Well the validation layer and the debug message logger are helpful and not
available on .moltenVK
…On Sat, May 6, 2023, 8:19 AM Hristo Hristov ***@***.***> wrote:
Is it a good idea to use MoltenVK and macOS as a primary platform for
development or is it better to do it on Windows and just port to macOS? Is
there anything missing on macOS compared to developing on Windows?
—
Reply to this email directly, view it on GitHub
<#1844 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIUAS727DZPNQMM5OFF6R4DXEY6TVANCNFSM6AAAAAAVPE5ITY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have tried downloading the Vulkan SDK "prebuilt" latest on vulkan.lunarg.com - The binary executables in it run.
I got a few samples to try and build but they all failed some with link errors saying the .dylib and the compiled app were on incompatible platforms ( arm vs x86 etc )
I am new to XCode and a Cmake with a known to work config would be great but ... I am familiar with "Modern Open GL"
-> do I need to build MoltenVK from source for the M! and/or M2 ? or is the prebuilt known to work building on M1 - M2
Once done what is the simplest least indirected and factored C++ sample that is known to work on an M1-M2 should I start with. Ideally with complete instructions for how to get it up on M1-M2. Maybe a simple spinning cube or a triangle.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions