屏蔽一些Linux下不支持的Layer

This commit is contained in:
hyzboy 2019-04-20 19:20:13 +08:00
parent 4b86ce91ab
commit 31f92f8de6
2 changed files with 8 additions and 4 deletions

View File

@ -125,17 +125,17 @@ Instance *CreateInstance(const UTF8String &app_name)
const char *validation_layers[]=
{
// "VK_LAYER_LUNARG_api_dump",
"VK_LAYER_LUNARG_assistant_layer",
// "VK_LAYER_LUNARG_assistant_layer",
"VK_LAYER_LUNARG_core_validation",
// "VK_LAYER_LUNARG_device_simulation",
"VK_LAYER_LUNARG_monitor",
// "VK_LAYER_LUNARG_monitor",
"VK_LAYER_LUNARG_object_tracker",
"VK_LAYER_LUNARG_standard_validation",
"VK_LAYER_LUNARG_parameter_validation",
// "VK_LAYER_LUNARG_vktrace",
// "VK_LAYER_RENDERDOC_Capture",
"VK_LAYER_KHRONOS_validation",
// "VK_LAYER_KHRONOS_validation",
// "VK_LAYER_NV_nsight-sys",

View File

@ -16,6 +16,10 @@
#include"VKFramebuffer.h"
#include<fstream>
#ifdef WIN32
#else
#include<unistd.h>
#endif//
using namespace hgl;
using namespace hgl::graph;
@ -170,7 +174,7 @@ int main(int,char **)
return -3;
vulkan::Semaphore *sem=device->CreateSem();
vulkan::VertexInput *vi=CreateVertexBuffer(device);
vulkan::PipelineCreater pc(device);