Comments (7)
Ok, I now see that bsl/bindings-GLFW#58 and your work on MoltenVK support predates the most recent hackage upload, so that much is answered. I've added the moltenVK lib
and include
directories to the extra-lib-dirs and extra-include-dirs in the stack.yaml
, but still not dice.
from vulkan.
GLFW supports MoltenVK since version 3.3. I wanted to update bindings-GLFW
to this version, but did not come to actually doing it, because my primary machine is linux.
At the same time, vulkan-api
worked for me with MoltenVK - windowless. So, if you want to get triangles on a screen of Mac OS, you need to start with bindings-GLFW/Upgrade-3.3. You can also try to create a window handle using GLFW without asking for Vulkan, then manually query for required Mac OS window extensions.
from vulkan.
So bindings-GLFW
does not yet support MoltenVK and this would need to implemented in the Upgrade-3.3
branch. The alternate, untested, approach would be to use GLFW without vulkan support and handle the vulkan-GLFW some other way. Is this correct?
from vulkan.
Yep, this is correct. Personally, I think the first option is easier :)
from vulkan.
Is there a guide to the first option? :)
from vulkan.
In general, you just replace the content of bindings-GLFW/glfw/
folder with the release 3.3 GLFW source code, and then carefully add new bindings to bindings-GLFW/Bindings/GLFW.hsc
.The latter is pretty intuitive, just follow the logic of the previously defined functions :)
Afterwards, you would need to update higher-level bindings via GLFW-b/util/genC.hs
.
from vulkan.
Thanks for the overview, I'll give it a shot.
from vulkan.
Related Issues (20)
- Shard api in vulkan-triangles to dedicated module? HOT 6
- genvulkan build error HOT 2
- vulkan-api on macOS should use libvulkan instead of libMoltenVK by default, and ideally the same lib as the one GLFW already loaded HOT 16
- getFieldArray and runtime indices HOT 21
- need example or documentaion for reading from an array with a count field HOT 1
- Core 1.1 *_BIT patterns of wrong type HOT 9
- Logo contribution
- Add explicitly bidirectional pattern synonyms for certain structs HOT 8
- VK_ERROR_INCOMPATIBLE_DRIVER error on nixos HOT 3
- Reducing the size of the project HOT 7
- genvulkan runtime error on windows ( my opinion ) HOT 3
- VkFormat not an instance of Num HOT 3
- Generalized VkStruct? HOT 7
- Failed to initialize GLFW on nixos
- Functions to safely read from Ptr fields HOT 1
- long compilation time for one line of code
- VK_ERROR_LAYER_NOT_PRESENT HOT 6
- New release needed HOT 1
- Are all the types really needed? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan.