编写完顶点渲染程序,先保存一下
This commit is contained in:
+12
-3
@@ -11,7 +11,7 @@
|
||||
// } \
|
||||
// } while (0)
|
||||
|
||||
#include <volk.h>
|
||||
//#include <volk.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define logOut std::cout
|
||||
@@ -29,12 +29,15 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
|
||||
void VK_CHECK(VkResult ret);
|
||||
|
||||
@@ -52,10 +55,16 @@ class AppBase
|
||||
{
|
||||
public:
|
||||
std::vector<char> readFile(const std::string& enginePath);
|
||||
std::string getPath(const std::string path);
|
||||
//std::string getPath(const std::string path);
|
||||
VkShaderModule createShaderModule(VkDevice& device, const std::vector<char>& code);
|
||||
const std::vector<const char*> validationLayers = {"VK_LAYER_KHRONOS_validation"};
|
||||
protected:
|
||||
long long getCurrentTimeMillis() {
|
||||
auto now = std::chrono::system_clock::now();
|
||||
auto duration = now.time_since_epoch();
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
|
||||
}
|
||||
|
||||
VkInstance instance;
|
||||
void createInstance();
|
||||
bool checkValidationLayerSupport();
|
||||
|
||||
Reference in New Issue
Block a user