upload 02 fix
This commit is contained in:
parent
28040e6737
commit
0f0097d886
@ -35,16 +35,6 @@
|
||||
#include <03 Command Buffers and Synchronization/07 Creating a semaphore.h>
|
||||
#include <03 Command Buffers and Synchronization/08 Creating a fence.h>
|
||||
using namespace VulkanCookbook;
|
||||
|
||||
Window* pWnd;
|
||||
//创建窗口
|
||||
WindowParameters createWindow() {
|
||||
WindowParameters window_parameters{};
|
||||
pWnd = new Window(600, 800, "hello Window");
|
||||
window_parameters.HWnd = pWnd->GetHWnd();
|
||||
window_parameters.HInstance = Window::WindowClass::GetInstance();
|
||||
return window_parameters;
|
||||
}
|
||||
int main02() {
|
||||
//加载dll
|
||||
LIBRARY_TYPE vulkan_library;
|
||||
@ -96,7 +86,13 @@ int main02() {
|
||||
//调用vulkan接口,加载设备函数指针
|
||||
LoadDeviceLevelFunctions(logical_device, desired_extensions);
|
||||
|
||||
WindowParameters&& window_parameters = createWindow();
|
||||
//创建窗口
|
||||
Window* pWnd;
|
||||
WindowParameters window_parameters{};
|
||||
pWnd = new Window(600, 800, "hello Window");
|
||||
window_parameters.HWnd = pWnd->GetHWnd();
|
||||
window_parameters.HInstance = Window::WindowClass::GetInstance();
|
||||
|
||||
VkSurfaceKHR presentation_surface;
|
||||
//调用实例接口,创建图像显示设备,需要传递窗口,并启用对应扩展
|
||||
CreatePresentationSurface(instance, window_parameters, presentation_surface);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user