{"repo":"zig-gamedev/zgpu","free":true,"listed":false,"github":"https://github.com/zig-gamedev/zgpu","clone":"git clone https://github.com/zig-gamedev/zgpu.git","description":"Cross-platform graphics lib for Zig built on top of Dawn native WebGPU implementation.","language":"C++","stars":92,"topics":["cross-platform","dawn","gamedev","graphics","native","webgpu","zig"],"license":"MIT","category":"game-templates","readme_excerpt":"zgpu Cross-platform graphics lib for Zig built on top of Dawn native WebGPU implementation. Supports Windows 10+ (DirectX 12), macOS 12+ (Metal) and Linux (Vulkan). Features - Zero-overhead wgpu API bindings (source code) - Uniform buffer pool for fast CPU- GPU transfers - Resource pools and handle-based GPU resources - Async shader compilation - GPU mipmap generator Getting started Example build.zig : Fetching prebuilt Dawn libraries zgpu uses prebuilt Dawn binaries as lazy dependencies. You need to fetch the one matching your target platform: Windows (x86 64): Linux (x86 64): Linux (aarch64): macOS (aarch64 / Apple Silicon): macOS (x86 64): You also need the system SDK dependency: Sample applications - gui test (wgpu) - physically based rendering (wgpu) - bullet physics test (wgpu) - procedural mesh (wgpu) - textured quad (wgpu) - triangle (wgpu) Library overview Below you can find an overview of main zgpu features. Compile-time options You can override default options by passing them to b.dependency : Graphics Context Create a GraphicsContext using a WindowProvider . For example, using zglfw: Uniforms - Implemented as a uniform buffer pool - Easy to use - Efficient - only one copy operation per frame Resource pools - Every GPU resource is identified by 32-bit integer handle - All resources are stored in one system - We keep basic info about each resource (size of the buffer, format of the texture, etc.) - You can always check if resource is valid (very useful for async ope","default_branch":null,"files":null,"tree":[],"storefront":"/r/zig-gamedev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zig-gamedev/zgpu/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}