AZSL Basic
A VS Code extension providing language support for AZSL (Amazon Shading Language) used in O3DE/Atom Engine.
Features
- Syntax Highlighting - Full syntax highlighting for
.azsl and .azsli files
- Go to Definition - Navigate to definitions of:
- Built-in types (
Texture2D, Sampler, SamplerState, etc.)
- SRG Semantics (
SRG_PerDraw, SRG_PerMaterial, SRG_PerScene, SRG_PerView)
- Sampler properties (
MaxAnisotropy, MinFilter, MagFilter, etc.)
- Symbols from Atom Gem headers
- Hover Documentation - Rich documentation on hover for built-in types, SRG semantics, and Sampler properties
- Code Completion - IntelliSense for Atom types, methods, and shader resources
- Error Detection - Validates code and reports:
- Undeclared identifiers
- Non-existent properties/methods
- Incomplete member access
- Header Indexing - Automatically indexes Atom Gem headers for enhanced IntelliSense
Configuration
Set the path to your Atom Gem directory in VS Code settings:
{
"azsl.gemPath": "D:\\O3DE\\Gems\\Atom"
}
Or use the command palette (Ctrl+Shift+P) and run AZSL: Set Gem Path.
Commands
- AZSL: Reindex Atom Headers - Manually trigger reindexing of Atom Gem headers
- AZSL: Set Gem Path - Set the path to Atom Gem directory
| |