LG1PCloudAmbStncl: Use RangeDescriptor obj instead of StagingBuffer
We directly use an instance of RangeDescriptor to avoid incurring the memory cost of using a StagingBuffer here. It's unnecessary since these stencils will always be 32bits large.
This commit is contained in:
@@ -18,16 +18,6 @@ class PcloudAmbienceStencil
|
||||
public:
|
||||
typedef uint32_t PcloudAmbienceStimulusValue;
|
||||
|
||||
/**
|
||||
* RangeDescriptor describes a contiguous range of body spots for
|
||||
* point cloud ambience stencils.
|
||||
*/
|
||||
struct RangeDescriptor : public Stencil::RangeDescriptor
|
||||
{
|
||||
uint32_t bodySpot;
|
||||
size_t nContiguousSpots;
|
||||
};
|
||||
|
||||
PcloudAmbienceStencil() = default;
|
||||
virtual ~PcloudAmbienceStencil() = default;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define _STENCIL_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <mentalEntity.h>
|
||||
|
||||
namespace smo {
|
||||
@@ -40,6 +41,8 @@ public:
|
||||
*/
|
||||
struct RangeDescriptor
|
||||
{
|
||||
uint32_t bodySpot;
|
||||
size_t nContiguousSpots;
|
||||
};
|
||||
|
||||
Stencil() = default;
|
||||
|
||||
Reference in New Issue
Block a user