GPU Shader Toolkit
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_15292d5a/yjkj-gpu-shader-toolkit.
About this skill
Problem
Many rendering issues are not syntax errors, but inconsistent shader behavior across platforms, drivers, or container formats. Engineers need to recognize source patterns in HLSL, GLSL, MSL, and WGSL, compare type and function differences, and identify performance hotspots from instructions such as STL, LDL, and MUFU.SIN/COS. In harder cases, NVIDIA driver caches, DirectX bytecode, game .pak archives, or PPSSPP .ppdmp frame dumps contain compiled or generated state rather than readable source, so analysis requires a structured toolchain and reverse-engineering workflow.
How It Works
The skill organizes shader work into reusable paths:
- Language detection and conversion: identify shaders from patterns like SV_Position, gl_Position, @vertex, and texture, then map differences such as vec2 / float2 and mix / lerp.
- NVIDIA cache analysis: use nvcachetools, nvdisasm, and envytools to extract compiled shaders, inspect instruction counts and constant memory pressure, and compare OpenGL versus Vulkan compilation behavior.
- Game asset reverse engineering: locate PAK headers, FILELINK_____END, SDRB, and DXBC boundaries to recover RDEF, ISGN, and other binding metadata; for PSP/PPSSPP, prioritize .ppdmp parsing to reconstruct GE state and generated shaders.
Boundaries and Notes
The material focuses on analysis, optimization, and reverse engineering, not full engine integration or mobile graphics driver certification. Browser-encrypted caches may not be directly parseable, PSP content usually lacks traditional shader sources, and PAK layouts vary by engine, so the Warframe example should not be treated as a universal template.
Use Cases
- Compare HLSL and GLSL function differences such as lerp, saturate, and texture sampling.
- Extract NVIDIA driver caches and inspect STL instructions with nvdisasm to diagnose OpenGL slowdowns.
- Locate DXBC entries inside game PAK files and read RDEF or ISGN binding metadata.
- Parse PPSSPP .ppdmp dumps to reconstruct GE state and inspect generated shaders.
Best For
- Graphics programmers optimizing Unity or Unreal rendering who need to map HLSL and GLSL APIs.
- Engine engineers debugging NVIDIA OpenGL performance who need driver cache instruction analysis.
- Reverse engineers studying game graphics assets who need to extract DXBC and inspect bindings.
- Open-source contributors debugging PPSSPP rendering who need .ppdmp dumps and generated shaders.
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.