From 8c4a15c522861d2f30eacc9cd2b03ad793018639 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Tue, 7 Jun 2022 11:20:17 -0700 Subject: 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 --- tools/gfx-unit-test/resolve-resource-tests.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'tools/gfx-unit-test/resolve-resource-tests.cpp') 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 #endif -#if 0 -#include -#include - -#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]; -- cgit v1.2.3