mach-examples
vulkan-guide
mach-examples | vulkan-guide | |
---|---|---|
5 | 67 | |
88 | 812 | |
- | - | |
9.2 | 9.0 | |
2 months ago | 5 days ago | |
Zig | SCSS | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mach-examples
-
Learn WebGPU
Zig fits pretty naturally here too. We've got ~19 WebGPU examples[1] which use Dawn natively (no browser support yet), and we build it using Zig's build system so it 'just works' out of the box with zero fuss as long as you grab a recent Zig version[2]. No messing with cmake/ninja/depot_tools/etc.
WASM support in Zig, Rust, and C++ is also not equal. C++ prefers Emscripten which reimplements parts of popular libraries like SDL, for me personally that feels a bit weird as I don't want my compiler implementing my libraries / changing how they behave. Rust I believe generally avoids emscripten(?), but Zig for sure lets me target WASM natively and compile C/C++ code to it using the LLVM backend and soon the custom Zig compiler backend.
[1] https://github.com/hexops/mach-examples
[2] https://github.com/hexops/mach#supported-zig-version
-
Mach (Zig) Adventures - Part 1
git clone --recursive https://github.com/hexops/mach-examples cd mach-examples/ zig build run-sprite2d
-
Just found out about Zig and wonder what would be the best graphics library to pair with it?
Mach core (pretty much ready for use today): a modern alternative to e.g. SDL+OpenGL which gives you just a Window+Input+GPU. We have ~16 examples including texturing, PBR, deferred rendering, etc.
-
Learning Modern 3D Graphics Programming
links to the github examples are all busted: https://github.com/hexops/mach-examples/tree/main/cubemap
- mach-examples: 15+ standalone Mach core examples (WebGPU, sysaudio, etc.)
vulkan-guide
-
NVK is now ready for prime time
I totally agree, and so do the people working on it as well as some of the volunteers who write tutorials.
There's an ongoing effort to create beginner friendly introductory material which was discussed in the recent Vulkanised conference. And an effort to make a better documentation site that's easier to browse than the specification.
On the volunteer front, there's a Vulkan 1.3 -based introductory tutorial (work in progress) over at https://vkguide.dev/
I think there should be a Vulkan tutorial that doesn't start with the boring stuff of initialization and window creation. It's stuff that you write once and forget about, and nothing particularly interesting happens in it.
Looking at my hobby project, excluding the boring stuff (which is reusable), a "hello compute" example is around 100 LOC and a "hello triangle" around 120 LOC. GLSL shader sources included.
Maybe someday I'll get around to writing a "learn Vulkan the hard way" blog post with examples.
- LearnD3D11, a guide aimed at anyone trying to learn Direct3D11
-
Struggling to Update Vertex Buffer via Staging Buffer
Also, use https://vkguide.dev/ rather than vulkan-tutorial.
-
What are the best textbooks/resources for learning graphics programming practically in 2023?
Once you're beyond the "introductory" phase, resources become more specialized based on what you'd like to learn -- there are Vulkan tutorials like https://vkguide.dev/ which will teach you the API and also give a bit more insight in how modern GPU hardware is structured, there are books like the "GPU Zen" series that do deep-dives on specific techniques, and there are tons of recorded GDC and SIGGRAPH talks on interesting new techniques. :)
- Where do I start learning graphics programming?
-
Yuzu Ea 3608 is out!
Personally, I'm a hands on learner who actually wants to use this stuff in my career, so I'd recommend these tutorials: https://learnopengl.com/ https://vulkan-tutorial.com/Overview https://vkguide.dev/
-
Theory on structuring graphics projects, building interfaces, and designing abstractions?
vkguide teaches some good practices regarding code/renderer structure, but I'm afraid it doesn't go as deep as you'd like. It's certainly deeper than most other tutorials, though.
-
"reportedly Apple just got absolutely everything they asked for and WebGPU really looks a lot like Metal. But Metal was always reportedly the nicest of the three modern graphics APIs to use, so that's… good?"
https://vkguide.dev/ This is my favorite.
- Extension VK_KHR_swapchain not found in list of known instance extensions
- Resources to build a game engine from scratch?
What are some alternatives?
webassembly-canvas - Draw canvas using WASM
vk-bootstrap - Vulkan Bootstrapping Iibrary
mach - zig game engine & graphics toolkit
raylib - A simple and easy-to-use library to enjoy videogames programming
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
score - ossia score, an interactive sequencer for the intermedia arts
Vulkan - Examples and demos for the new Vulkan API
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
SDL - Simple Directmedia Layer
angle - A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.
SPIRV-Reflect - SPIRV-Reflect is a lightweight library that provides a C/C++ reflection API for SPIR-V shader bytecode in Vulkan applications.