blob: e5c0ec91a3518e2ad5567ad73474413571c31e96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "BLI_index_mask.h"
#include "block_step_data.hpp"
namespace BParticles {
using BLI::float3;
using BLI::IndexMask;
class ForceInterface : public BlockStepDataAccess {
private:
IndexMask m_mask;
MutableArrayRef<float3> m_destination;
public:
ForceInterface(BlockStepData &step_data, IndexMask mask, MutableArrayRef<float3> destination)
: BlockStepDataAccess(step_data), m_mask(mask), m_destination(destination)
{
}
IndexMask mask()
{
return m_mask;
}
MutableArrayRef<float3> combined_destination()
{
return m_destination;
}
};
} // namespace BParticles
|