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