Skip to content

Commit 9e12690

Browse files
PipelineResourceSignatureVkImpl: remove unused GetNumInlineConstantBuffers and GetInlineConstantBuffers
1 parent f263aa3 commit 9e12690

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

Graphics/GraphicsEngineVulkan/include/PipelineResourceSignatureVkImpl.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ class PipelineResourceSignatureVkImpl final : public PipelineResourceSignatureBa
154154
void CommitDynamicResources(const ShaderResourceCacheVk& ResourceCache,
155155
VkDescriptorSet vkDynamicDescriptorSet) const;
156156

157-
// Returns the number of inline constant buffers
158-
Uint32 GetNumInlineConstantBuffers() const { return m_NumInlineConstantBuffers; }
159-
160-
// Returns the inline constant buffer attributes
161-
const InlineConstantBufferAttribsVk* GetInlineConstantBuffers() const { return m_InlineConstantBuffers.get(); }
162-
163157
// Updates inline constant buffers by mapping the internal buffers and copying data from the resource cache
164158
// ResourceCache must be valid - each SRB has its own copy of inline constant data stored in the cache
165159
// PushConstantResIndex: Resource index of the inline constant selected as push constant by PSO

Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ void DeviceContextVkImpl::UpdateInlineConstantBuffers(ResourceBindInfo& BindInfo
424424
for (Uint32 i = 0; i < SignCount; ++i)
425425
{
426426
const PipelineResourceSignatureVkImpl* pSign = m_pPipelineState->GetResourceSignature(i);
427-
if (pSign == nullptr || pSign->GetNumInlineConstantBuffers() == 0)
427+
if (pSign == nullptr || !pSign->HasInlineConstants())
428428
continue;
429429

430430
const ShaderResourceCacheVk* pResourceCache = BindInfo.ResourceCaches[i];

0 commit comments

Comments
 (0)