summaryrefslogtreecommitdiff
path: root/tools/gfx/renderer-shared.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-07-20 10:22:20 -0700
committerGitHub <noreply@github.com>2021-07-20 10:22:20 -0700
commitf9f8d3ec5c749bcbdab5a8fc2d2f919350f2423c (patch)
tree78d4fbb45e737fd6cccf8da419e4eae7b97bf7e2 /tools/gfx/renderer-shared.h
parent6162950d9012833ef5d4f96b99c67a46bf97ce6d (diff)
Minor refactor to gfx D3D12 implementation. (#1913)
* Minor refactor to gfx D3D12 implementation. - Allow more flexible collection of shader stages in a shader program. - Add `createRayTracingPipelineState` public interface. (no implementation). * Fix Vulkan initialization. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.h')
-rw-r--r--tools/gfx/renderer-shared.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h
index 6863a95a0..1f0a3eaab 100644
--- a/tools/gfx/renderer-shared.h
+++ b/tools/gfx/renderer-shared.h
@@ -1092,6 +1092,11 @@ public:
const IAccelerationStructure::CreateDesc& desc,
IAccelerationStructure** outView) override;
+ // Provides a default implementation that returns SLANG_E_NOT_AVAILABLE for platforms
+ // without ray tracing support.
+ virtual SLANG_NO_THROW Result SLANG_MCALL createRayTracingPipelineState(
+ const RayTracingPipelineStateDesc& desc, IPipelineState** outState) override;
+
Result getShaderObjectLayout(
slang::TypeReflection* type,
ShaderObjectContainerType container,