You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "application.hpp"
|
|
|
|
|
|
|
|
class SoftBody;
|
|
|
|
class Buffer;
|
|
|
|
|
|
|
|
class Simulation : public Application {
|
|
|
|
public:
|
|
|
|
Simulation();
|
|
|
|
~Simulation();
|
|
|
|
private:
|
|
|
|
Buffer* vertexBuffer;
|
|
|
|
Buffer* edgeBuffer;
|
|
|
|
Buffer* triangleBuffer;
|
|
|
|
Buffer* faceBuffer;
|
|
|
|
Buffer* tetrahedronBuffer;
|
|
|
|
|
|
|
|
ComputePipeline* pbdPipeline = nullptr;
|
|
|
|
ComputePipeline* normalPipeline = nullptr;
|
|
|
|
|
|
|
|
std::vector<std::unique_ptr<SoftBody>> softBodies;
|
|
|
|
void recordDrawCommands() override;
|
|
|
|
void recordComputeCommands(VkCommandBuffer cmdBuffer) override;
|
|
|
|
};
|