加入volk 和 wma 后 编译不通过, 先保存代码
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef __FaceApp_H__
|
||||
#define __FaceApp_H__
|
||||
|
||||
#include "Application.h"
|
||||
#include "framework/core/buffer.h"
|
||||
|
||||
|
||||
struct TextureLoadingVertexStructure
|
||||
{
|
||||
float pos[3];
|
||||
float uv[2];
|
||||
float normal[3];
|
||||
};
|
||||
|
||||
struct PushConstants {
|
||||
float myValue;
|
||||
};
|
||||
|
||||
class FaceApp :public Application
|
||||
{
|
||||
public:
|
||||
FaceApp(/* args */);
|
||||
~FaceApp();
|
||||
|
||||
void initVulkan() override;
|
||||
|
||||
|
||||
private:
|
||||
void generate_quad();
|
||||
|
||||
std::unique_ptr<vkb::core::BufferC> vertex_buffer;
|
||||
std::unique_ptr<vkb::core::BufferC> index_buffer;
|
||||
uint32_t index_count;
|
||||
|
||||
std::vector<TextureLoadingVertexStructure> obj_vertices;
|
||||
std::vector<uint32_t> obj_indices;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user