Skip to content

Commit a627e36

Browse files
committed
fix formatting.
1 parent 0324728 commit a627e36

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Graphics/GraphicsEngineVulkan/include/PipelineResourceSignatureVkImpl.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ ASSERT_SIZEOF(ImmutableSamplerAttribsVk, 8, "The struct is used in serialization
6464
/// are emulated using dynamic uniform buffers (similar to D3D11 backend).
6565
struct InlineConstantBufferAttribsVk
6666
{
67-
Uint32 DescrSet = 0; // Descriptor set index
68-
Uint32 BindingIndex = 0; // Binding index within the descriptor set
69-
Uint32 NumConstants = 0; // Number of 32-bit constants
70-
RefCntAutoPtr<BufferVkImpl> pBuffer; // Internal dynamic uniform buffer
67+
Uint32 DescrSet = 0; // Descriptor set index
68+
Uint32 BindingIndex = 0; // Binding index within the descriptor set
69+
Uint32 NumConstants = 0; // Number of 32-bit constants
70+
RefCntAutoPtr<BufferVkImpl> pBuffer; // Internal dynamic uniform buffer
7171
};
7272

7373
struct PipelineResourceSignatureInternalDataVk : PipelineResourceSignatureInternalData<PipelineResourceAttribsVk, ImmutableSamplerAttribsVk>

Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void PipelineResourceSignatureVkImpl::CreateSetLayouts(const bool IsSerialized)
352352
CacheGroupOffsets[CacheGroup] += ResDesc.GetArraySize();
353353

354354
VkDescriptorSetLayoutBinding vkSetLayoutBinding{};
355-
vkSetLayoutBinding.binding = pAttribs->BindingIndex;
355+
vkSetLayoutBinding.binding = pAttribs->BindingIndex;
356356
// For inline constants, descriptor count is 1 (single uniform buffer)
357357
vkSetLayoutBinding.descriptorCount = ResDesc.GetArraySize();
358358
vkSetLayoutBinding.stageFlags = ShaderTypesToVkShaderStageFlags(ResDesc.ShaderStages);
@@ -376,9 +376,9 @@ void PipelineResourceSignatureVkImpl::CreateSetLayouts(const bool IsSerialized)
376376
"Only constant buffers can have INLINE_CONSTANTS flag");
377377

378378
InlineConstantBufferAttribsVk& InlineCBAttribs = m_InlineConstantBuffers[InlineConstantBufferIdx++];
379-
InlineCBAttribs.DescrSet = pAttribs->DescrSet;
380-
InlineCBAttribs.BindingIndex = pAttribs->BindingIndex;
381-
InlineCBAttribs.NumConstants = ResDesc.ArraySize; // For inline constants, ArraySize is the number of 32-bit constants
379+
InlineCBAttribs.DescrSet = pAttribs->DescrSet;
380+
InlineCBAttribs.BindingIndex = pAttribs->BindingIndex;
381+
InlineCBAttribs.NumConstants = ResDesc.ArraySize; // For inline constants, ArraySize is the number of 32-bit constants
382382

383383
// Create a USAGE_DYNAMIC uniform buffer for emulating inline constants
384384
// All SRBs created from this signature will share the same inline constant buffer.
@@ -755,7 +755,7 @@ void PipelineResourceSignatureVkImpl::InitSRBResourceCache(ShaderResourceCacheVk
755755
Attr.BindingIndex,
756756
0, // ArrayIndex
757757
RefCntAutoPtr<IDeviceObject>{InlineCBAttr.pBuffer},
758-
0, // BufferBaseOffset
758+
0, // BufferBaseOffset
759759
InlineCBAttr.NumConstants * sizeof(Uint32) // BufferRangeSize
760760
});
761761
}
@@ -910,8 +910,8 @@ void PipelineResourceSignatureVkImpl::CommitDynamicResources(const ShaderResourc
910910
const Uint32 CacheOffset = Attr.CacheOffset(CacheType);
911911
// For inline constants, GetArraySize() returns 1 (actual array size for cache),
912912
// while ArraySize contains the number of 32-bit constants
913-
const Uint32 ArraySize = ResDesc.GetArraySize();
914-
const DescriptorType DescrType = Attr.GetDescriptorType();
913+
const Uint32 ArraySize = ResDesc.GetArraySize();
914+
const DescriptorType DescrType = Attr.GetDescriptorType();
915915

916916
#ifdef DILIGENT_DEBUG
917917
{

Graphics/GraphicsEngineVulkan/src/ShaderResourceCacheVk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void ShaderResourceCacheVk::SetInlineConstants(Uint32 DescrSetIndex,
964964
Resource& DstRes = DescrSet.GetResource(CacheOffset);
965965

966966
VERIFY(DstRes.pInlineConstantData != nullptr, "Inline constant data pointer is null. "
967-
"Make sure InitializeInlineConstantBuffer was called for this resource.");
967+
"Make sure InitializeInlineConstantBuffer was called for this resource.");
968968

969969
// Copy to CPU-side staging buffer
970970
Uint32* pDstConstants = reinterpret_cast<Uint32*>(DstRes.pInlineConstantData);

Graphics/GraphicsEngineVulkan/src/ShaderVariableManagerVk.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ void ShaderVariableManagerVk::SetInlineConstants(Uint32 ResIndex,
656656
Uint32 FirstConstant,
657657
Uint32 NumConstants)
658658
{
659-
const PipelineResourceAttribsVk& Attribs = m_pSignature->GetResourceAttribs(ResIndex);
660-
const ResourceCacheContentType CacheType = m_ResourceCache.GetContentType();
659+
const PipelineResourceAttribsVk& Attribs = m_pSignature->GetResourceAttribs(ResIndex);
660+
const ResourceCacheContentType CacheType = m_ResourceCache.GetContentType();
661661
const Uint32 CacheOffset = Attribs.CacheOffset(CacheType);
662662

663663
#ifdef DILIGENT_DEVELOPMENT

0 commit comments

Comments
 (0)