summaryrefslogtreecommitdiffstats
path: root/CLAUDE.local.md
blob: 2829367016292e80c856949b8540c7ec7c26e0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Slang Repository Structure

For the repoName: `shader-slang/slang` repository, the deepwiki mcp server structure includes:

## Main Topics:
 - 1 Overview
 - 2 Compiler Architecture
   - 2.1 Front-End: Parsing & AST
   - 2.2 Semantic Analysis
   - 2.3 Intermediate Representation
   - 2.4 IR Lowering & Optimization
   - 2.5 Code Generation
 - 3 Session Management & API
   - 3.1 Session & Linkage System
   - 3.2 ComponentType Hierarchy
 - 4 Language Features
   - 4.1 Automatic Differentiation
   - 4.2 Module System
   - 4.3 Interfaces & Generics
   - 4.4 Capabilities System
 - 5 Target Platforms
   - 5.1 HLSL & DirectX Targets
   - 5.2 GLSL & Vulkan Targets
   - 5.3 C++, CUDA & CPU Targets
   - 5.4 Other Targets & Extensions
 - 6 Rendering System
   - 6.1 GFX API Architecture
   - 6.2 Shader Objects & Resource Binding
   - 6.3 Device & Pipeline Management
 - 7 Testing & Build Infrastructure
   - 7.1 Test Framework
   - 7.2 Build System
   - 7.3 CI/CD Pipeline
 - 8 Development Tools
   - 8.1 Language Server
   - 8.2 Utilities & Core Libraries
### MCP Tools
#### 1. `mcp__deepwiki__ask_question`
- **Purpose**: Ask specific questions about a GitHub repository
- **Parameters**:
  - `repoName` (required): GitHub repository in format "shader-slang/slang"
  - `question` (required): The question to ask about the repository
- **Usage**: Returns AI-generated answers based on repository analysis

## Build Instructions
- Build using: `cmake --build --preset debug`
- Test using: `./build/Debug/bin/slangc -target path/to/file.slang`
    - Add `-dump-ir` for IR stages / optimization logs and understanding