destroy pipline layout

This commit is contained in:
tylermurphy534 2022-09-19 23:17:15 -04:00
parent 8cc0b081ef
commit b2af1ca699
2 changed files with 5 additions and 3 deletions

View file

@ -29,7 +29,9 @@ XeRenderSystem::XeRenderSystem(
}
XeRenderSystem::~XeRenderSystem() {};
XeRenderSystem::~XeRenderSystem() {
vkDestroyPipelineLayout(xeDevice.device(), pipelineLayout, nullptr);
};
void XeRenderSystem::createUniformBuffers(XeDescriptorPool &xeDescriptorPool, XeDescriptorSetLayout &xeDescriptorSetLayout, uint32_t uniformBufferDataSize) {
if(uniformBufferDataSize == 0) return;

View file

@ -26,9 +26,9 @@ void FirstApp::run() {
SimpleRenderer renderer{xeEngine};
xeEngine.getCamera().setViewTarget(glm::vec3(-1.f, -2.f, 20.f), glm::vec3(0.f, 0.f, 2.5f));
auto viewerObject = xe::XeGameObject::createGameObject();
viewerObject.transform.translation = {-7.f, 3.f, -7.f};
viewerObject.transform.rotation.y = glm::radians(45.f);
KeyboardMovementController cameraController{};
while (xeEngine.poll()) {