LG1PclAmbienceStencil: allocate stencils in constructor
This commit is contained in:
@@ -32,11 +32,45 @@ public:
|
||||
stencilBuffer(
|
||||
stencilBufferConstraints, // Input constraints
|
||||
stencilBufferConstraints, // Output constraints (same as input)
|
||||
nDgramsPerFrame)
|
||||
nDgramsPerFrame),
|
||||
nRangeDescriptors(0)
|
||||
{}
|
||||
|
||||
~LG1PcloudAmbienceStencil() = default;
|
||||
|
||||
// Implement pure virtual functions from Stencil
|
||||
bool hasData() const override
|
||||
{
|
||||
return nRangeDescriptors > 0;
|
||||
}
|
||||
|
||||
size_t getRelevantCount() const override
|
||||
{
|
||||
// TODO: Implement based on range descriptors
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool isRelevant(size_t offset) const override
|
||||
{
|
||||
// TODO: Implement based on range descriptors
|
||||
(void)offset;
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t getNRangeDescriptors() const override
|
||||
{
|
||||
return nRangeDescriptors;
|
||||
}
|
||||
|
||||
bool buildStencilMetadata() override
|
||||
{
|
||||
// TODO: Implement stencil metadata building
|
||||
return true;
|
||||
}
|
||||
|
||||
public:
|
||||
StagingBuffer stencilBuffer;
|
||||
size_t nRangeDescriptors;
|
||||
};
|
||||
|
||||
} // namespace stim_buff
|
||||
|
||||
Reference in New Issue
Block a user