summaryrefslogtreecommitdiffstats
path: root/tools/gfx/renderer-shared.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-22 21:54:16 -0700
committerGitHub <noreply@github.com>2022-09-22 21:54:16 -0700
commitbd11629739ae2b0619699c765354894ff32dacf1 (patch)
tree4f72313bc33ed34dd96d16cec6623ca9b0a8292e /tools/gfx/renderer-shared.cpp
parenta6fcb3b0ed2b185723afde750bd4491b5b4113eb (diff)
GFX: improve d3d12 performance. (#2408)
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
-rw-r--r--tools/gfx/renderer-shared.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp
index 69046d216..43629a0f2 100644
--- a/tools/gfx/renderer-shared.cpp
+++ b/tools/gfx/renderer-shared.cpp
@@ -386,6 +386,8 @@ Result RendererBase::getFormatSupportedResourceStates(Format format, ResourceSta
outStates->add(ResourceState::ResolveDestination);
outStates->add(ResourceState::ResolveSource);
outStates->add(ResourceState::ShaderResource);
+ outStates->add(ResourceState::PixelShaderResource);
+ outStates->add(ResourceState::NonPixelShaderResource);
outStates->add(ResourceState::StreamOutput);
outStates->add(ResourceState::Undefined);
outStates->add(ResourceState::UnorderedAccess);