Validation fixes, resource cleanup
This commit is contained in:
parent
fbc6154921
commit
0b7804d8f3
2 changed files with 4 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ namespace vkglTF
|
|||
VkBuffer buffer;
|
||||
VkDeviceMemory memory;
|
||||
VkDescriptorBufferInfo descriptor;
|
||||
VkDescriptorSet descriptorSet;
|
||||
VkDescriptorSet descriptorSet = VK_NULL_HANDLE;
|
||||
void *mapped;
|
||||
} uniformBuffer;
|
||||
|
||||
|
|
@ -563,6 +563,8 @@ namespace vkglTF
|
|||
for (auto node : nodes) {
|
||||
delete node;
|
||||
}
|
||||
vkDestroyDescriptorSetLayout(device->logicalDevice, descriptorSetLayout, nullptr);
|
||||
vkDestroyDescriptorPool(device->logicalDevice, descriptorPool, nullptr);
|
||||
}
|
||||
|
||||
void loadNode(vkglTF::Node *parent, const tinygltf::Node &node, uint32_t nodeIndex, const tinygltf::Model &model, std::vector<uint32_t>& indexBuffer, std::vector<Vertex>& vertexBuffer, float globalscale)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public:
|
|||
} pushBlock;
|
||||
pushBlock.baseColorFactor = primitive->material.baseColorFactor;
|
||||
|
||||
vkCmdPushConstants(commandBuffer, pipelineLayout, VK_SHADER_STAGE_FRAGMENT_BIT, 0, sizeof(PushBlock), &pushBlock);
|
||||
vkCmdPushConstants(commandBuffer, pipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, 0, sizeof(PushBlock), &pushBlock);
|
||||
|
||||
/*
|
||||
[POI] Setup the conditional rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue