代码写完了,下一步调试运行

This commit is contained in:
xsl
2025-10-19 22:12:44 +08:00
parent 3c63027bf5
commit d2da523636
861 changed files with 89895 additions and 53699 deletions
+1 -2
View File
@@ -652,13 +652,12 @@ uint32_t Application::findMemoryType(VkPhysicalDevice physicalDevice, uint32_t t
throw std::runtime_error("Failed to find suitable memory type!");
}
Texture Application::loadTexture(std::string path)
Texture Application::loadTexture(std::string path, Texture tex)
{
std::vector<char> data = readFile(path);
std::vector<unsigned char> image;
unsigned w, h;
unsigned error = lodepng::decode(image, w, h, data.data(), LCT_RGBA, 8);
Texture tex;
processWithVulkan(image.data(), w, h, w * 4, image.size(), tex, true);
return tex;
}