Skip to content

Commit

Permalink
Merge branch 'ad-fix-names' of https://github.com/saipraveenb25/slang
Browse files Browse the repository at this point in the history
…into ad-fix-names
  • Loading branch information
saipraveenb25 committed Aug 6, 2024
2 parents 41a272d + 225509c commit 38e9785
Show file tree
Hide file tree
Showing 211 changed files with 14,493 additions and 3,765 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ name: CI
on:
push:
branches: [master]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
pull_request:
branches: [master]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/compile-regression-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ name: Compile Regression-Test
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ensure-pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Verify PR Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
jobs:
label:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/falcor-compiler-perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ name: Falcor Compiler Perf-Test
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/falcor-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ name: Falcor Tests
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
# caches filled in a scope available to everyone
branches:
- master
paths-ignore:
- 'docs/**'
- 'LICENCE'
- 'CONTRIBUTION.md'
- 'README.md'
tags:
- 'v*'

Expand Down
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ option(SLANG_ENABLE_SLANGRT "Enable runtime target" ON)
option(SLANG_ENABLE_SLANG_GLSLANG "Enable glslang dependency and slang-glslang wrapper target" ON)
option(SLANG_ENABLE_TESTS "Enable test targets, some tests may require SLANG_ENABLE_GFX, SLANG_ENABLE_SLANGD or SLANG_ENABLE_SLANGRT" ON)
option(SLANG_ENABLE_EXAMPLES "Enable example targets, requires SLANG_ENABLE_GFX" ON)
option(SLANG_ENABLE_REPLAYER "Enable slang-replay tool" ON)

enum_option(
SLANG_LIB_TYPE
Expand Down Expand Up @@ -770,6 +771,20 @@ if (SLANG_ENABLE_EXAMPLES AND SLANG_ENABLE_GFX)
endif()
endif()

#
# slang-replay tool for replaying the record files
#
if (SLANG_ENABLE_REPLAYER)
slang_add_target(
tools/slang-replay
EXECUTABLE
EXTRA_SOURCE_DIRS source/slang-record-replay/replay source/slang-record-replay/util
LINK_WITH_PRIVATE core compiler-core slang
INCLUDE_DIRECTORIES_PUBLIC source/slang-record-replay
FOLDER test
)
endif()

#
# Testing
#
Expand Down Expand Up @@ -803,5 +818,9 @@ install(DIRECTORY
"${slang_SOURCE_DIR}/docs/"
DESTINATION share/doc/slang
)
install(DIRECTORY
"${slang_SOURCE_DIR}/include"
DESTINATION .
)

include(CPack)
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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 | Metal Shading Language (Vertex/Fragment/Compute stages) | 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/)

Expand Down
Loading

0 comments on commit 38e9785

Please sign in to comment.