yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

yumfix compiler bug lolf8cb9c4d6

master
23 folders2 files

files

autodiff-texture/
cpu-com-example/
cpu-hello-world/
example-base/
example-main/
example-winmain/
gpu-printing/
hello-world/
mlp-training/
mlp-training-coopvec/
model-viewer/
nv-aftermath-example/
platform-test/
ray-tracing/
ray-tracing-pipeline/
reflection-api/
reflection-parameter-blocks/
shader-object/
shader-toy/
stacktrace-windows/
triangle/
wgpu-html5/
wgpu-slang-wasm/
CMakeLists.txt3.8 KiB
README.md1.0 KiB

Slang Examples

This directory contains small example programs showing how to use the Slang language, compiler, and API.

Most of the examples presented here use a software layer called gfx (exposed via slang-gfx.h) to abstract over the differences between various target APIs/platforms (D3D11, D3D12, OpenGL, Vulkan, CUDA, and CPU). Using gfx is not a requirement for using Slang, but it provides a concrete example of how tight integration of Slang's features into a GPU abstraction layer can provide for a clean and usable application programming model.