AssemblyBuffer changes
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <user/stimulusBuffer.h>
|
||||
#include <user/stimFrame.h>
|
||||
#include <livoxProto1/device.h>
|
||||
#include "stagingBuffer.h"
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
@@ -23,10 +24,12 @@ public:
|
||||
explicit PcloudStimulusBuffer(
|
||||
const device::DeviceAttachmentSpec& deviceAttachmentSpec,
|
||||
std::shared_ptr<livoxProto1::Device> &device,
|
||||
const PcloudFormatDesc& formatDesc)
|
||||
const PcloudFormatDesc& formatDesc,
|
||||
size_t nPointsPerFrame)
|
||||
: StimulusBuffer(deviceAttachmentSpec),
|
||||
deviceAttachmentSpec(deviceAttachmentSpec), device(device),
|
||||
formatDesc(formatDesc)
|
||||
formatDesc(formatDesc), stagingBuffer(
|
||||
IoUringConstraints(), OpenClConstraints(), nPointsPerFrame)
|
||||
{}
|
||||
|
||||
~PcloudStimulusBuffer() = default;
|
||||
@@ -41,6 +44,7 @@ public:
|
||||
device::DeviceAttachmentSpec deviceAttachmentSpec;
|
||||
std::shared_ptr<livoxProto1::Device> device;
|
||||
PcloudFormatDesc formatDesc;
|
||||
StagingBuffer stagingBuffer;
|
||||
};
|
||||
|
||||
} // namespace stim_buff
|
||||
|
||||
@@ -72,6 +72,26 @@ private:
|
||||
std::atomic<bool> isAssembling_;
|
||||
};
|
||||
|
||||
class IoUringConstraints
|
||||
: public StagingBuffer::InputEngineConstraints
|
||||
{
|
||||
public:
|
||||
IoUringConstraints()
|
||||
: StagingBuffer::InputEngineConstraints()
|
||||
{}
|
||||
~IoUringConstraints() = default;
|
||||
};
|
||||
|
||||
class OpenClConstraints
|
||||
: public StagingBuffer::OutputEngineConstraints
|
||||
{
|
||||
public:
|
||||
OpenClConstraints()
|
||||
: StagingBuffer::OutputEngineConstraints()
|
||||
{}
|
||||
~OpenClConstraints() = default;
|
||||
};
|
||||
|
||||
} // namespace stim_buff
|
||||
} // namespace smo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user