Skip to content

Commit

Permalink
Applied format changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 11, 2025
1 parent dd87e64 commit 3c4e6fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
5 changes: 4 additions & 1 deletion FastCG/include/FastCG/Graphics/Vulkan/VulkanUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,10 @@ namespace FastCG
#ifdef CONVERSION_TABLE_ENTRY
#undef CONVERSION_TABLE_ENTRY
#endif
#define CONVERSION_TABLE_ENTRY(format) {TextureFormat::format, VK_FORMAT_##format}
#define CONVERSION_TABLE_ENTRY(format) \
{ \
TextureFormat::format, VK_FORMAT_##format \
}

constexpr struct
{
Expand Down
15 changes: 9 additions & 6 deletions FastCG/src/Graphics/Vulkan/VulkanGraphicsContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,21 +462,23 @@ namespace FastCG
pRenderTarget = VulkanGraphicsSystem::GetInstance()->GetCurrentSwapChainTexture();
}

mClearCommands.emplace_back(ClearCommand{
mClearCommands.emplace_back(ClearCommand {
#if _DEBUG
mMarkerCommands.size(),
#endif
pRenderTarget, rClearRequest});
pRenderTarget, rClearRequest
});
}
}
if (mRenderPassDescription.pDepthStencilBuffer != nullptr &&
mRenderPassDescription.depthStencilClearRequest.flags != VulkanClearRequestFlagBit::NONE)
{
mClearCommands.emplace_back(ClearCommand{
mClearCommands.emplace_back(ClearCommand {
#if _DEBUG
mMarkerCommands.size(),
#endif
mRenderPassDescription.pDepthStencilBuffer, mRenderPassDescription.depthStencilClearRequest});
mRenderPassDescription.pDepthStencilBuffer, mRenderPassDescription.depthStencilClearRequest
});
}
}
mRenderPassDescription.renderTargetCount = renderTargetCount;
Expand Down Expand Up @@ -532,11 +534,12 @@ namespace FastCG

void VulkanGraphicsContext::EnqueueCopyCommand(CopyCommandType type, const CopyCommandArgs &rArgs)
{
mCopyCommands.emplace_back(CopyCommand{
mCopyCommands.emplace_back(CopyCommand {
#if _DEBUG
mMarkerCommands.size(),
#endif
type, rArgs});
type, rArgs
});
}

void VulkanGraphicsContext::EnqueueDrawCommand(DrawCommandType type, PrimitiveType primitiveType,
Expand Down

0 comments on commit 3c4e6fa

Please sign in to comment.