From 5a29c15cc3c227d9bb93a71cb50491a822d0ccf3 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Mon, 15 Nov 2021 20:42:39 -0800 Subject: Add BGRA8 Unorm SRGB to the list of supported formats (#2016) Co-authored-by: Yong He --- tools/gfx-unit-test/format-unit-tests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/gfx-unit-test/format-unit-tests.cpp') diff --git a/tools/gfx-unit-test/format-unit-tests.cpp b/tools/gfx-unit-test/format-unit-tests.cpp index 0498bc670..b499b67bd 100644 --- a/tools/gfx-unit-test/format-unit-tests.cpp +++ b/tools/gfx-unit-test/format-unit-tests.cpp @@ -744,6 +744,14 @@ namespace gfx_test floatResults, Slang::makeArray(0.0f, 0.0f, 0.0f, 1.0f, 0.498039216f, 0.498039216f, 0.498039216f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + + texView = createTexView(device, size, gfx::Format::B8G8R8A8_UNORM_SRGB, &subData); + setUpAndRunTest(device, texView, floatBufferView, "copyTexFloat4"); + compareComputeResult( + device, + floatResults, + Slang::makeArray(0.0f, 0.0f, 0.0f, 1.0f, 0.211914062f, 0.211914062f, 0.211914062f, + 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f)); } { -- cgit v1.2.3