Skip to content

Commit e9267d0

Browse files
ResoureSignatureVk: add HasInlineConstants method stub
1 parent d586cdd commit e9267d0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Graphics/GraphicsEngineVulkan/include/PipelineResourceSignatureVkImpl.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2025 Diligent Graphics LLC
2+
* Copyright 2019-2026 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -150,6 +150,12 @@ class PipelineResourceSignatureVkImpl final : public PipelineResourceSignatureBa
150150

151151
PipelineResourceSignatureInternalDataVk GetInternalData() const;
152152

153+
bool HasInlineConstants() const
154+
{
155+
// TODO
156+
return false;
157+
}
158+
153159
private:
154160
// Resource cache group identifier
155161
enum CACHE_GROUP : size_t

Graphics/GraphicsEngineVulkan/src/PipelineLayoutVk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void PipelineLayoutVk::Create(RenderDeviceVkImpl* pDe
9898
// Vulkan allows only one push constant range per pipeline layout.
9999
// Diligent API allows multiple inline constant resources, so we promote only the first inline constant
100100
// from resource signatures to push constants. Other inline constants remain uniform buffers.
101-
if (!m_PushConstantInfo)
101+
if (!m_PushConstantInfo && pSignature->HasInlineConstants())
102102
{
103103
for (Uint32 r = 0; r < pSignature->GetTotalResourceCount(); ++r)
104104
{

0 commit comments

Comments
 (0)