加入volk 和 wma 后 编译不通过, 先保存代码

This commit is contained in:
xsl
2025-10-18 23:59:21 +08:00
parent 4237213658
commit 234e30bd50
605 changed files with 144276 additions and 15 deletions
+44
View File
@@ -0,0 +1,44 @@
#include "FaceApp.h"
FaceApp::FaceApp(/* args */)
{
}
FaceApp::~FaceApp()
{
}
void FaceApp::initVulkan()
{
Application::initVulkan();
}
void FaceApp::generate_quad()
{
//std::vector<TextureLoadingVertexStructure>& vertices = obj_vertices;
//std::vector<uint32_t> indices = obj_indices;
//index_count = static_cast<uint32_t>(indices.size());
//auto vertex_buffer_size = vkb::to_u32(vertices.size() * sizeof(TextureLoadingVertexStructure));
//auto index_buffer_size = vkb::to_u32(indices.size() * sizeof(uint32_t));
//// Create buffers
//// For the sake of simplicity we won't stage the vertex data to the gpu memory
//// Vertex buffer
//vertex_buffer = std::make_unique<vkb::core::BufferC>(get_device(),
// vertex_buffer_size,
// VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT,
// VMA_MEMORY_USAGE_CPU_TO_GPU);
//vertex_buffer->update(vertices.data(), vertex_buffer_size);
//index_buffer = std::make_unique<vkb::core::BufferC>(get_device(),
// index_buffer_size,
// VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
// VMA_MEMORY_USAGE_CPU_TO_GPU);
//index_buffer->update(indices.data(), index_buffer_size);
}