Sable GPU
GPU abstraction layer providing cross-platform rendering primitives using wgpu.
Modules
- [
context] — GPU context and device management - [
buffer] — GPU buffer types (vertex, index, uniform) - [
pipeline] — Render pipeline builder - [
shader] — Shader loading and management - [
vertex] — Vertex type definitions and layouts
Quick Start
use *;
use *;
async
Backend Selection
By default, wgpu selects the best available backend:
- Windows: DirectX 12 or Vulkan
- macOS/iOS: Metal
- Linux: Vulkan
- Web: WebGPU or WebGL