Skip to content

KStocky/ShaderTestFrameworkExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShaderTestFrameworkExamples

Example projects that show how to use Shader Test Framework

What is Shader Test Framework

An automation testing framework for testing shader code. Based on Catch2. It uses D3D12 and requires HLSL 2021

It is a framework that is intended to be used with another testing framework such as Catch2 to add shader testing capabilities to your already existing test suite. It is currently very experimental, meaning that every merge to main will likely break all old code. The purpose of this project is to explore how we can write unit tests in HLSL.

Getting Started

This should be enough to grab the repo and build everything provided you have a recent install of Visual Studio 2022 and CMake.

$ git clone https://github.com/KStocky/ShaderTestFrameworkExamples
$ cd ShaderTestFrameworkExamples
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .

From there you can run the example project and having a look through the CMakeLists.txt to see how you might make use of Shader Test Framework in your own projects.

There is also a much more in depth tutorial. This describes the requirements in detail, then takes you through how to include the framework in your project, and then how to write tests for your shader code.

About

Example projects that show how to use Shader Test Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published