shader-edsl-core
CommunityWrite GPU shader logic with typed primitives.
Authormikialex
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It eliminates the guesswork of authoring GPU shader code by providing a stage-agnostic, typed Rust EDSL that compiles to WGSL-like output, ensuring correct composition of expressions, structs, memory layout, and GPU-side operations.
Core Features & Use Cases
- Typed shader values with Node<T>: Build constants, arithmetic, comparisons, and selection logic in a type-safe way using Node<T> handles.
- Memory-safe struct modeling and layout rules: Define shader structs via ShaderStruct, access them as ENode, and control buffer layouts with std140_layout and std430_layout (including common pitfalls like Bool field handling and mat3/array padding).
- Shader control flow and GPU-side iteration primitives: Express if/else chains, switch/case, loops, returns, and GPU iteration over buffer-backed collections using into_shader_iter adaptors.
- GPU-side systems building blocks: Support texture sampling and texel load/store, atomics through pointer views, subgroup operations (reduce/scan/collectives), and reusable GPU functions via #[shader_fn].
- Math and data construction utilities: Provide a rich Node<T> method surface for vector/matrix ops, conversions, swizzles, and screen-space derivatives for shader authoring.
Quick Start
Use the shader-edsl-core skill to define and manipulate a stage-agnostic shader expression graph for your material or lighting logic (for example, sampling textures, constructing vectors/matrices, and composing it into GPU-executable functions).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: shader-edsl-core Download link: https://github.com/mikialex/rendiation/archive/main.zip#shader-edsl-core Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.