From a8ce7a9a4b1285e33538b1dfdc1798630741e277 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 24 Jul 2024 15:19:56 -0700 Subject: Update README.md on Metal support. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af46c1283..e93b96a9e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The Slang system is designed to provide developers of real-time graphics applica * Slang is backwards-compatible with most existing HLSL code. It is possible to start taking advantage of Slang's benefits without rewriting or porting your shader codebase. -* The Slang compiler can generate code for a wide variety of targets and APIs: D3D12, Vulkan, D3D11, OpenGL, CUDA, and CPU. Slang code can be broadly portable, but still take advantage of the unique features of each platform. +* The Slang compiler can generate code for a wide variety of targets and APIs: D3D12, Vulkan, Metal, D3D11, OpenGL, CUDA, and CPU. Slang code can be broadly portable, but still take advantage of the unique features of each platform. For textual targets such as Metal Shading Language(MSL) and CUDA, Slang generates readable code that preserves the original identifier names and the type + call structure for ease of debugging. * [Automatic differentiation](https://shader-slang.com/slang/user-guide/autodiff.html) as a first-class language feature. Slang can automatically generate both forward and backward derivative propagation code for complex functions that involve arbitrary control flow and dynamic dispatch. This allows users to easily make existing rendering codebases differentiable, or to use Slang as the kernel language in a PyTorch driven machine learning framework via [`slangtorch`](https://shader-slang.com/slang/user-guide/a1-02-slangpy.html). @@ -73,12 +73,12 @@ Limitations and Support ### Platform support | Windows | Linux | MacOS | |:---------------:|:--------------:|:------------:| -| supported | supported | unofficial | +| supported | supported | supported | ### Target support -| Direct3D 11 | Direct3D 12 | Vulkan | CUDA | OptiX | CPU Compute | -|:---------------:|:--------------:|:---------------:|:-------------------:|:-----------:|:---------------------:| -| HLSL | HLSL | GLSL & SPIR-V | C++ (compute-only) | C++ (WIP) | C++ (compute-only) | +| Direct3D 11 | Direct3D 12 | Vulkan | Metal | CUDA | OptiX | CPU Compute | +|:---------------:|:--------------:|:---------------:|:-----------------------------------:|:-------------------:|:-----------:|:---------------------:| +| HLSL | HLSL | GLSL & SPIR-V | Vertex/Fragment/Compute stages only | C++ (compute-only) | C++ (WIP) | C++ (compute-only) | *for greater detail, see the [Supported Compilation Targets](https://shader-slang.com/slang/user-guide/targets.html) section of the [User Guide](https://shader-slang.github.io/slang/user-guide/) -- cgit v1.2.3