28 Fluid2(std::shared_ptr<GraphicsEngine>
const& engine,
29 std::shared_ptr<ProgramFactory>
const& factory,
30 int xSize,
int ySize,
float dt,
float densityViscosity,
float velocityViscosity);
33 void DoSimulationStep();
34 inline std::shared_ptr<Texture2>
const& GetState()
const;
64 return mStateTTexture;
std::shared_ptr< Texture2 > mStateTp1Texture
std::shared_ptr< Fluid2ComputeDivergence > mComputeDivergence
std::shared_ptr< Fluid2UpdateState > mUpdateState
std::shared_ptr< Texture2 > mStateTTexture
std::shared_ptr< Fluid2SolvePoisson > mSolvePoisson
std::shared_ptr< Texture2 > mDivergenceTexture
std::shared_ptr< Fluid2InitializeState > mInitializeState
std::shared_ptr< Texture2 > mSourceTexture
std::shared_ptr< Fluid2AdjustVelocity > mAdjustVelocity
std::shared_ptr< Texture2 > mPoissonTexture
std::shared_ptr< Fluid2InitializeSource > mInitializeSource
std::shared_ptr< Texture2 > const & GetState() const
std::shared_ptr< GraphicsEngine > mEngine
std::shared_ptr< Fluid2EnforceStateBoundary > mEnforceStateBoundary
std::shared_ptr< Texture2 > mStateTm1Texture
std::shared_ptr< ConstantBuffer > mParameters