Slang is a shading language and compiler toolchain designed to simplify GPU programming and the development of scalable graphics applications. Its HLSL-inspired syntax facilitates migration from existing shader codebases while providing compatibility with GLSL functionality. The language supports generics, interfaces, and specialized code generation for different hardware targets. A modular compilation system enables independent shader compilation and subsequent runtime linking. Integrated automatic differentiation generates forward and backward derivative propagation code for differentiable rendering and machine learning applications. Supported compilation targets include DXIL, SPIR-V, CUDA, and Metal. Language Server Protocol integration provides intelligent editing features, while debugging tools facilitate shader inspection.

Features

  • Cross-platform shader compilation targeting DXIL, SPIR-V, CUDA, Metal, and additional GPU programming environments
  • Advanced language constructs with generics, interfaces, and compile-time or runtime code specialization
  • Modular shader development with independent compilation, intermediate representations, and runtime linking
  • Automatic forward and backward differentiation for neural graphics, differentiable rendering, and machine learning applications
  • HLSL-compatible syntax with GLSL interoperability for migrating existing graphics application codebases
  • Integrated language server functionality with intelligent code editing, shader debugging, and RenderDoc compatibility

Project Samples

Project Activity

See All Activity >

Categories

Compilers, Graphics

Follow Slang

Slang Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. Developers get access to both Gemini and third-party models.
Get started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Slang!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ Compilers, C++ Graphics Software

Registered

1 day ago