Skip to content

Commit

Permalink
Added the D3D12 Work Graphs example.
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Mar 11, 2024
1 parent 1100831 commit a253c57
Show file tree
Hide file tree
Showing 35 changed files with 62,674 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
set(DONUT_SHADERS_OUTPUT_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/shaders/framework")

option(INCLUDE_WORKGRAPHS_EXAMPLE "Include the examples/work_graphs project (depends on SDK bits)" OFF)

add_subdirectory(donut)
add_subdirectory(feature_demo)
add_subdirectory(examples/basic_triangle)
add_subdirectory(examples/vertex_buffer)
add_subdirectory(examples/deferred_shading)
add_subdirectory(examples/headless)

if (NVRHI_WITH_DX12 AND INCLUDE_WORKGRAPHS_EXAMPLE)
add_subdirectory(examples/work_graphs)
endif()

if (NVRHI_WITH_VULKAN OR NVRHI_WITH_DX12)
add_subdirectory(examples/bindless_rendering)
add_subdirectory(examples/variable_shading)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This repository provides a collection of example applications built using the [D
| [Threaded Rendering](examples/threaded_rendering) | | :white_check_mark: | :white_check_mark: | Renders a cube map view of a scene using multiple threads, one per face. |
| [Variable Shading](examples/variable_shading) | | :white_check_mark: | :white_check_mark: | Renders a scene with variable shading rate specified by a texture. |
| [Vertex Buffer](examples/vertex_buffer) | :white_check_mark: | :white_check_mark: | :white_check_mark: | Creates a vertex buffer for a cube and draws the cube. |
| [Work Graphs](examples/work_graphs) | | :white_check_mark: | | Demonstrates the new D3D12 work graphs API via a tiled deferred shading renderer that dynamically chooses shaders for each screen tile. Requires CMake define `INCLUDE_WORKGRAPHS_EXAMPLE=ON`. |

## Requirements

Expand Down
Loading

0 comments on commit a253c57

Please sign in to comment.