30 void prepare(VkRenderPass renderPass)
override
57 void viewChanged(
const glm::mat4& perspective,
const glm::mat4& view)
override
59 ubo.projection = perspective;
67 VkPipelineShaderStageCreateInfo
loadShader(std::string fileName, VkShaderStageFlagBits stage);
92 glm::vec4
lightPos = glm::vec4(-2.0f, 4.0f, -2.0f, 1.0f);
void setupDescriptorPool()
VkDeviceArray< Vertex > mSphereVertex
void preparePipelines(VkRenderPass renderPass)
VkDeviceArray< uint32_t > mCapsuleIndex
VkDeviceArray< uint32_t > mSphereIndex
VkDeviceArray< Vertex > mCubeVertex
std::vector< VkShaderModule > shaderModules
bool specializedComputeQueue
VkPipelineShaderStageCreateInfo loadShader(std::string fileName, VkShaderStageFlagBits stage)
VkPipeline spherePipeline
VkPipeline capsulePipeline
void buildCommandBuffers(VkCommandBuffer drawCmdBuffer) override
VkDescriptorSet descriptorSet
void prepare(VkRenderPass renderPass) override
struct dyno::VkGraphicsPipeline::GraphicsUBO ubo
VkUniform< GraphicsUBO > mUniform
VkPipeline trianglePipeline
VkDeviceArray< px::Sphere > mSphereInstanceData
VkDeviceArray< px::Capsule > mCapsuleInstanceData
void viewChanged(const glm::mat4 &perspective, const glm::mat4 &view) override
void setupLayoutsAndDescriptors()
VkDeviceArray< px::Box > mCubeInstanceData
VkDescriptorPool descriptorPool
VkPipelineLayout pipelineLayout
VkDescriptorSetLayout descriptorSetLayout
VkDeviceArray< uint32_t > mCubeIndex
std::string getShadersPath() const
VkDeviceArray< Vertex > mCapsuleVertex
This is an implementation of AdditiveCCD based on peridyno.