diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-03-27 16:02:20 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-03-27 16:02:20 +0000 |
| commit | 884401f8ed7fdaf79032b99787501fc7f770b64e (patch) | |
| tree | 285b9f5e2b73c8e5c0b01f403cf25f26e8c389b6 /Graphics/GraphicsEngine | |
| parent | DILIGENT_BEGIN_INTERFACE1 helper (diff) | |
| download | DiligentCore-ext-vk.tar.gz DiligentCore-ext-vk.zip | |
GLTF: hacky VR rendering supportext-vk
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/PipelineStateBase.hpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngine/interface/PipelineState.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp index 869e0af0..8f89bb14 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp @@ -963,7 +963,7 @@ private: if (m_UsingImplicitSignature) { VERIFY_EXPR(CreateInfo.ResourceSignaturesCount == 0 || CreateInfo.ppResourceSignatures == nullptr); - m_SignatureCount = 1; + m_SignatureCount = CreateInfo.PSODesc.SeparateGeometrySignature ? 2 : 1; } else { diff --git a/Graphics/GraphicsEngine/interface/PipelineState.h b/Graphics/GraphicsEngine/interface/PipelineState.h index 96d6de5c..4e56df1c 100644 --- a/Graphics/GraphicsEngine/interface/PipelineState.h +++ b/Graphics/GraphicsEngine/interface/PipelineState.h @@ -332,6 +332,8 @@ struct PipelineStateDesc DILIGENT_DERIVE(DeviceObjectAttribs) /// Pipeline layout description PipelineResourceLayoutDesc ResourceLayout; + bool SeparateGeometrySignature DEFAULT_INITIALIZER(false); + #if DILIGENT_CPP_INTERFACE bool IsAnyGraphicsPipeline() const { return PipelineType == PIPELINE_TYPE_GRAPHICS || PipelineType == PIPELINE_TYPE_MESH; } bool IsComputePipeline() const { return PipelineType == PIPELINE_TYPE_COMPUTE; } |
