GPU Shader Toolkit for Openclaw

A professional-grade toolkit for cross-platform shader development, performance optimization, and deep reverse engineering of compiled GPU binaries.

darkd
v1.0.0
Apr 12, 2026
0
200
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gpu-shader-toolkit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gpu-shader-toolkit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GPU Shader Toolkit?

The GPU Shader Toolkit is an expert-level resource designed for developers who need to bridge the gap between high-level shader code and low-level GPU execution. It provides a comprehensive framework for writing, converting, and optimizing shaders across HLSL, GLSL, MSL, WGSL, and specialized formats like ReShade FX and Unity ShaderLab. By leveraging this skill from the Openclaw Skills library, developers can ensure their visual effects are both high-performing and platform-agnostic.

Beyond standard development, the toolkit excels in shader reverse engineering. it includes specialized workflows for NVIDIA shader cache analysis using tools like nvcachetools and nvdisasm, as well as methods for extracting compiled DXBC shaders from game archives. Whether you are porting a complex effect from WebGL to Metal or analyzing the instruction count of a compute shader for an RTX 4090, this toolkit provides the technical truth required for production-ready graphics programming.

GPU Shader Toolkit Use Cases

  • Converting legacy GLSL shaders to modern WGSL or MSL for web and mobile platforms.
  • Optimizing AAA game shaders by analyzing NVIDIA driver caches for STL/LDL memory bottlenecks.
  • Extracting and disassembling DXBC/DXIL shaders from proprietary game PAK files for research or modding.
  • Porting post-processing effects to ReShade FX while avoiding common platform-specific pitfalls like missing fmod intrinsics.
  • Reverse engineering PSP graphics engine (GE) command lists from PPSSPP frame dumps to reconstruct rendering pipelines.

How GPU Shader Toolkit Works

  1. Language Detection & Mapping: The skill analyzes source code to identify the shader language and maps types and intrinsics across the target platform's schema.
  2. Performance-First Implementation: It applies validated mathematical transformations, such as replacing transcendental functions with faster ALU equivalents like sincos or bit-identical power function optimizations.
  3. Compilation & Cache Extraction: Shaders are passed through relevant compilers (DXC, glslang) or extracted directly from the GPU driver's binary cache.
  4. Instruction-Level Analysis: The toolkit disassembles the binary (NVUC, DXBC, or SPIR-V) to provide a breakdown of instruction counts, register usage, and memory latency impact.
  5. Validation & Verification: Every optimization is run through a mathematical validation template to ensure the visual output remains identical to the original source.

GPU Shader Toolkit Setup

To begin using this tool from Openclaw Skills, ensure your environment is configured for GPU binary analysis:

# Install NVIDIA cache analysis tools
git clone https://github.com/therontarigo/nvcachetools.git
cd nvcachetools && gcc -o nvcachedec nvcachedec.c

# Set NVIDIA shader cache path (Linux example)
export __GL_SHADER_DISK_CACHE_PATH=~/.nv/GLCache

# Install Microsoft DirectX Shader Compiler (DXC)
# Available via Windows SDK or GitHub releases
dxc -dumpbin shader.dxil -Fc disassembly.txt

GPU Shader Toolkit Data Schema & Taxonomy

The toolkit organizes shader data and metadata using a structured taxonomy to ensure cross-platform compatibility:

Data Category File Formats Metadata Tracked
Source Code .hlsl, .glsl, .metal, .wgsl Entry points, Uniform bindings, Semantics
Compiled Binaries .dxbc, .dxil, .spv, .nvuc SM Architecture (e.g., SM89), Instruction count
Debug Dumps .ppdmp, .sdrb, .bin GE command lists, PAK TOC offsets
Optimization Reports .asm, .txt Register pressure, STL/LDL hotspots, ALU vs Tex cost

GPU Shader Toolkit Advanced Features

  • NVIDIA SM89 (Ada Lovelace) instruction-level disassembly and frequency analysis.
  • Automated Taylor series approximations for sin/cos and exp functions with built-in error tolerance reporting.
  • Reverse engineering of Warframe-style EvoEngine PAK files using FILELINK marker detection.
  • Full-screen quad vertex shader generation for ReShade FX post-processing pipelines.
  • Bit-access optimization for large arrays to prevent OpenGL-specific local memory explosions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*