40 lines
625 B
C++
40 lines
625 B
C++
#ifndef __FaceApp_H__
|
|
#define __FaceApp_H__
|
|
|
|
#include "Application.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
|