LG1PclAmbienceStencil: allocate stencils in constructor

This commit is contained in:
2025-11-26 13:00:24 -04:00
parent 8eb7eaba3d
commit e51d371f58
4 changed files with 68 additions and 5 deletions
@@ -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