diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-06-07 11:20:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-07 11:20:17 -0700 |
| commit | 8c4a15c522861d2f30eacc9cd2b03ad793018639 (patch) | |
| tree | 68dc2e57a88e13d77172c791c53237c93e1c87d0 /tools/gfx-unit-test/resolve-resource-tests.cpp | |
| parent | c4ed2385e98385b2459b93a151df9e6e7d7d3591 (diff) | |
Add simple ray tracing test (#2261)
* checkpoint commit
* Simple ray tracing test works
* Removed unnecessary shaders and code but image is completely black
* Simple ray tracing test for a 2x2 texture working; Added new helper functions to gfx-test-texture-util for stripping padding from texture resource readback and dumping textures to disk
* Renamed variables
* Ignore test if ray tracing isn't supported
Diffstat (limited to 'tools/gfx-unit-test/resolve-resource-tests.cpp')
| -rw-r--r-- | tools/gfx-unit-test/resolve-resource-tests.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/gfx-unit-test/resolve-resource-tests.cpp b/tools/gfx-unit-test/resolve-resource-tests.cpp index 7b125a17d..af2bf68e9 100644 --- a/tools/gfx-unit-test/resolve-resource-tests.cpp +++ b/tools/gfx-unit-test/resolve-resource-tests.cpp @@ -9,14 +9,6 @@ #include <d3d12.h> #endif -#if 0 -#include <stdlib.h> -#include <stdio.h> - -#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "external/stb/stb_image_write.h" -#endif - using namespace Slang; using namespace gfx; @@ -24,20 +16,6 @@ namespace { using namespace gfx_test; -#if 0 - Slang::Result writeImage( - const char* filename, - ISlangBlob* pixels, - uint32_t width, - uint32_t height) - { - int stbResult = - stbi_write_hdr(filename, width, height, 4, (float*)pixels->getBufferPointer()); - - return stbResult ? SLANG_OK : SLANG_FAIL; - } -#endif - struct Vertex { float position[3]; |
