Skip to content

Commit

Permalink
Minor code clean up in Vulkan\PlatformStructuredBuffer.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Nov 7, 2024
1 parent 5bd9bbd commit 514e758
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Vulkan/PlatformStructuredBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ void PlatformStructuredBuffer::SetData(crossplatform::DeviceContext& deviceConte

void PlatformStructuredBuffer::ActualApply(crossplatform::DeviceContext &deviceContext,bool as_uav)
{
vk::Device *vulkanDevice = ((vulkan::RenderPlatform *)renderPlatform)->AsVulkanDevice();
if (mCurApplyCount >= mMaxApplyCount)
{
mMaxApplyCount*=mCountMultiplier;
Expand All @@ -158,8 +157,6 @@ void PlatformStructuredBuffer::ActualApply(crossplatform::DeviceContext &deviceC
mLastFrame=(int64_t)-1;
}

auto rPlat = (vulkan::RenderPlatform*)deviceContext.renderPlatform;

// If new frame, update current frame index and reset the apply count
if (bufferUsageHint != crossplatform::ResourceUsageFrequency::ONCE)
{
Expand Down

0 comments on commit 514e758

Please sign in to comment.