Spaces:
Runtime error
Runtime error
// SPDX-License-Identifier: Apache-2.0 | |
namespace kp { | |
OpBufferSyncLocal::OpBufferSyncLocal( | |
vk::Buffer *primaryBuffer, | |
vk::Buffer *stagingBuffer, | |
vk::DeviceSize size) | |
: mPrimaryBuffer(primaryBuffer) | |
, mStagingBuffer(stagingBuffer) | |
, mSize(size) | |
{ | |
KP_LOG_DEBUG("Kompute OpBufferSyncLocal constructor with params"); | |
} | |
OpBufferSyncLocal::~OpBufferSyncLocal() | |
{ | |
KP_LOG_DEBUG("Kompute OpBufferSyncLocal destructor started"); | |
} | |
void | |
OpBufferSyncLocal::record(const vk::CommandBuffer& commandBuffer) | |
{ | |
KP_LOG_DEBUG("Kompute OpBufferSyncLocal record called"); | |
vk::BufferCopy copyRegion(0, 0, mSize); | |
commandBuffer.copyBuffer(*mPrimaryBuffer, *mStagingBuffer, copyRegion); | |
} | |
void | |
OpBufferSyncLocal::preEval(const vk::CommandBuffer& /*commandBuffer*/) | |
{ | |
KP_LOG_DEBUG("Kompute OpBufferSyncLocal preEval called"); | |
} | |
void | |
OpBufferSyncLocal::postEval(const vk::CommandBuffer& /*commandBuffer*/) | |
{ | |
KP_LOG_DEBUG("Kompute OpBufferSyncLocal postEval called"); | |
} | |
} | |