first vulkan function loaded with new loader
This commit is contained in:
@@ -41,9 +41,8 @@ static VKAPI_ATTR VkBool32 VKAPI_CALL vk_debuggerDebugCallback(
|
||||
return VK_TRUE;
|
||||
}
|
||||
|
||||
gnReturnCode gnCreateInstanceFn(gnInstanceHandle instance, gnInstanceInfo instanceInfo) {
|
||||
gnReturnCode createInstance(gnInstanceHandle instance, gnInstanceInfo instanceInfo) {
|
||||
instance->instance = malloc(sizeof(gnPlatformInstance));
|
||||
instance->instance->instanceMessageCount = 0;
|
||||
|
||||
#ifdef GN_PLATFORM_LINUX
|
||||
gnBool isX11 = gnTrue;
|
||||
|
@@ -1,18 +1,10 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "debugger/gryphn_debugger.h"
|
||||
#include "instance/gryphn_instance.h"
|
||||
|
||||
struct gnInstanceMessage {
|
||||
gnMessageSeverity severity;
|
||||
gnMessageType type;
|
||||
gnMessageData data;
|
||||
};
|
||||
|
||||
typedef struct gnPlatformInstance_t {
|
||||
VkInstance vk_instance;
|
||||
VkApplicationInfo appInfo;
|
||||
|
||||
uint16_t instanceMessageCount;
|
||||
struct gnInstanceMessage* instanceMessages;
|
||||
} gnPlatformInstance;
|
||||
|
||||
gnReturnCode createInstance(gnInstanceHandle instance, gnInstanceInfo instanceInfo);
|
||||
|
Reference in New Issue
Block a user