Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-gpu

GPU devices, textures, shaders and frames for Luce: Metal on macOS and Vulkan on Windows and Linux, presenting to luce-window windows.

A library written in luce-base. Latest release 0.5.7.

Install#

luc add dymokomi/luce-gpu

Documentation#

luce-gpu

GPU devices, textures, shaders, compute kernels, masks and frames, presenting to luce-window windows. Shaders are GLSL compiled ahead of time and embedded (tools/embed_shaders.py); the Vulkan bindings are generated from the Khronos headers (tools/generate_vulkan.py).

Modules

importwhat it holds
import gpuPortable devices, canvases and frames

Using it

Add the dependency to package.prisma; the modules keep their short names:

def dependency "luce-gpu" {
    str owner = "dymokomi"
    str version = "^0.1.0"
}

Depends on

  • luce-std
  • luce-window

Platforms

macOS (Metal), Windows and Linux (Vulkan).

Native libraries it links, by platform (declared in package.prisma, linked only when the program reaches code that needs them):

  • macos: objc, Metal, CoreGraphics, QuartzCore

On Windows and Linux nothing is linked: the system's Vulkan loader (vulkan-1.dll, libvulkan.so.1) is opened when the first device is, so building needs no Vulkan SDK or development package. Linux presents to X11 windows (Xlib surfaces), which covers Wayland desktops through XWayland.

Tests

luc test runs tests/gpu, the device, pixel, window and linkage checks (Metal on macOS, Vulkan batching on Linux), and tests/boundaries. docs/GPU.md describes them.

License

MIT or Apache-2.0, at your option.

Dependencies#

PackageVersion
dymokomi/luce-stdnewest
dymokomi/luce-windownewest

Versions#

0.5.7

Browse source · pack · commit d0a0974f7aad

SHA-256 ac2da65f218d62b09b26e87b55394022eb0c6b1aff4ee862e0cf81df45866a8b

luce-gpu 0.5.7: batch release

0.5.6

Browse source · pack · commit 941f19d80c08

SHA-256 eb35a686eface576dd36dc745c8f2623600f74397e65a88b5df7cb1f61272743

luce-gpu 0.5.6: batch release

0.5.5

Browse source · pack · commit f83fd7ba1f08

SHA-256 fa926468c8ae617208a319a106d4a1733a21634eeef599f4b900a5b3ce0fcbc5

luce-gpu 0.5.5: batch release

0.5.4

Browse source · pack · commit 3ce36b367618

SHA-256 78ea6b5f99c7ee7ba2c03ec5880814fe752f2caa28dd5ed1e1fb0f720eac9361

luce-gpu 0.5.4: batch release

0.5.3

Browse source · pack · commit 08d6600d54d4

SHA-256 0a0cb8bed1acc984ad1ba885c928f2b3917462e6cb1147a06ed2e19826c4bb55

luce-gpu 0.5.3: batch release

0.5.2

Browse source · pack · commit 134fff5c6ad3

SHA-256 d3470968fb66fe391dfb2ca0ce636afdda20496e7baa8ab856bf167020e6e40c

luce-gpu 0.5.2: batch release

0.5.1

Browse source · pack · commit 27da31d74810

SHA-256 205e822fbb02b0654827a4b02854be8ccc0d1a8593551a1a88bd58b739044aae

dependencies name no version