reconstruct render

pull/2/head
ink-soul 2023-06-05 10:38:28 +08:00
parent 93ceae3657
commit 25402941e3
2 changed files with 7 additions and 5 deletions

View File

@ -221,8 +221,8 @@ PlumageRender::PlumageRender():
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
}
}
void PlumageRender::loadglTFFile(std::string filename, VulkanglTFModel& model, bool bSkyboxFlag = false)
/*
void PlumageRender::loadglTFFile(std::string filename, glTFModel::Model& model, bool bSkyboxFlag = false)
{
tinygltf::Model glTFInput;
tinygltf::TinyGLTF gltfContext;
@ -333,6 +333,8 @@ PlumageRender::PlumageRender():
vkDestroyBuffer(device, indexStaging.buffer, nullptr);
vkFreeMemory(device, indexStaging.memory, nullptr);
}
*/
// TO DO:reconstruct with getting file path through struct
void PlumageRender::loadAssets()
{

View File

@ -17,7 +17,7 @@ public:
bool ToneMapping = true;
bool pbrEnabled = true;
VulkanglTFModel glTFModel;
glTFModel::Model glTFModel;
struct ShaderData {
vks::Buffer buffer;
@ -154,7 +154,7 @@ public:
uint32_t numSamples = 32u;
} prefilterPushBlock;
VulkanglTFModel skyboxModel;
glTFModel::Model skyboxModel;
PlumageRender();
~PlumageRender()
@ -185,7 +185,7 @@ public:
shaderData.buffer.destroy();
shaderData.skinSSBO.destroy();
}
void loadglTFFile(std::string filename, VulkanglTFModel& model, bool bSkyboxFlag);
virtual void getEnabledFeatures();
void createAttachment(VkFormat format, VkImageUsageFlagBits usage, FrameBufferAttachment* attachment, uint32_t width, uint32_t height);
virtual void setupFrameBuffer();