From 31f92f8de6b76f81617d6547e82a59231a917125 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 20 Apr 2019 19:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E4=B8=80=E4=BA=9BLinux?= =?UTF-8?q?=E4=B8=8B=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84Layer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/VKInstance.cpp | 6 +++--- example/Vulkan/main.cpp | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/example/Vulkan/VKInstance.cpp b/example/Vulkan/VKInstance.cpp index cf5ff14f..918c38b7 100644 --- a/example/Vulkan/VKInstance.cpp +++ b/example/Vulkan/VKInstance.cpp @@ -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", diff --git a/example/Vulkan/main.cpp b/example/Vulkan/main.cpp index ca3b18d2..2435217f 100644 --- a/example/Vulkan/main.cpp +++ b/example/Vulkan/main.cpp @@ -16,6 +16,10 @@ #include"VKFramebuffer.h" #include +#ifdef WIN32 +#else +#include +#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);