begin using new version of gryphn utils
This commit is contained in:
@@ -15,6 +15,7 @@ add_library(Gryphn ${SOURCE_FILES} ${METAL_FILES})
|
||||
target_include_directories(Gryphn PUBLIC ${CMAKE_SOURCE_DIR}/gryphn/src/)
|
||||
target_include_directories(Gryphn PUBLIC ${CMAKE_SOURCE_DIR}/gryphn/include/)
|
||||
target_include_directories(Gryphn PUBLIC ${CMAKE_SOURCE_DIR}/gryphn/src/utils)
|
||||
target_include_directories(Gryphn PUBLIC ${CMAKE_SOURCE_DIR}/gryphn/src/utils/utils)
|
||||
add_compile_definitions(GN_REVEAL_IMPL)
|
||||
|
||||
if(WIN32)
|
||||
|
@@ -11,7 +11,7 @@ add_library(GryphnMetalImpl SHARED ${SOURCE_FILES})
|
||||
target_include_directories(GryphnMetalImpl PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/gryphn/include/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/utils/
|
||||
src/
|
||||
depends/SPIRV-Cross/
|
||||
)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "core/framebuffer/gryphn_framebuffer.h"
|
||||
#include "utils/gryphn_bool.h"
|
||||
#include "utils/types/gryphn_image_format.h"
|
||||
#include "utils/gryphn_image_format.h"
|
||||
#import <Metal/Metal.h>
|
||||
#import <Metal/MTLRenderPass.h>
|
||||
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "core/debugger/gryphn_debugger.h"
|
||||
#include "core/texture/metal_texture.h"
|
||||
#include "core/renderpass/gryphn_render_pass_descriptor.h"
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
|
||||
gnBool isDepthFormat(gnImageFormat format) {
|
||||
return gnFalse;
|
||||
|
@@ -17,7 +17,7 @@ add_library(GryphnVulkanImpl SHARED ${SOURCE_FILES} ${METAL_FILES})
|
||||
target_include_directories(GryphnVulkanImpl PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/gryphn/include/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/
|
||||
${CMAKE_SOURCE_DIR}/gryphn/src/utils/
|
||||
src/
|
||||
/Applications/vulkansdk/macOS/include/
|
||||
)
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#include "vulkan_debugger.h"
|
||||
#include <instance/vulkan_instance.h>
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
|
||||
void populateDebugMessengerCreateInfo(VkDebugUtilsMessengerCreateInfoEXT* createInfo) {
|
||||
createInfo->sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "core/debugger/gryphn_debugger.h"
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
|
||||
struct gnInstanceMessage {
|
||||
gnMessageSeverity severity;
|
||||
|
@@ -3,6 +3,7 @@
|
||||
#include "output_device/vulkan_output_devices.h"
|
||||
#include "shader_module/vulkan_shader_module.h"
|
||||
#include "renderpass/vulkan_render_pass_descriptor.h"
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
|
||||
VkDynamicState vkGryphnDynamicStateToVulkanDynamicState(enum gnDynamicState_e state) {
|
||||
switch (state) {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
struct gnPlatformDebugger_t;
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
|
||||
typedef enum gnRenderingAPI_t {
|
||||
GN_RENDERINGAPI_NONE, // idk why im putting this
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
#include "utils/gryphn_bool.h"
|
||||
|
||||
typedef struct gnDynamicLibrary_t {
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
#include "core/gryphn_platform_functions.h"
|
||||
#include "core/instance/init/gryphn_init.h"
|
||||
#include "utils/gryphn_bool.h"
|
||||
|
||||
gnReturnCode gnCreateOutputDevice(gnOutputDeviceHandle* outputDevice, gnInstanceHandle instance, struct gnOutputDeviceInfo_t deviceInfo) {
|
||||
*outputDevice = malloc(sizeof(struct gnOutputDevice_t));
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
struct gnPlatformPhysicalDevice_t;
|
||||
|
@@ -2,16 +2,16 @@
|
||||
#include <gryphn/gryphn_utils.h>
|
||||
#include <core/output_device/gryphn_output_device.h>
|
||||
#include <core/window_surface/gryphn_surface.h>
|
||||
#include <utils/types/gryphn_image_format.h>
|
||||
#include <utils/gryphn_image_format.h>
|
||||
#include <core/sync/semaphore/gryphn_semaphore.h>
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
typedef struct gnPresentationQueueInfo_t {
|
||||
uint32_t minImageCount;
|
||||
struct gnUInt2_t imageSize;
|
||||
gnUInt2 imageSize;
|
||||
gnWindowSurfaceHandle surface;
|
||||
struct gnSurfaceFormat_t format;
|
||||
enum gnImageSharingMode_e imageSharingMode;
|
||||
gnSurfaceFormat format;
|
||||
gnImageSharingMode imageSharingMode;
|
||||
uint32_t queueFamilyCount;
|
||||
uint32_t* queueFamilies;
|
||||
} gnPresentationQueueInfo;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "utils/types/gryphn_color.h"
|
||||
#include "utils/gryphn_color.h"
|
||||
#include "utils/math/gryphn_vec2.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "utils/types/gryphn_image_format.h"
|
||||
#include "utils/gryphn_image_format.h"
|
||||
#include "stdint.h"
|
||||
#include "core/output_device/gryphn_output_device.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "stdint.h"
|
||||
#include "utils/strings/gryphn_string.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
#include "core/gryphn_handles.h"
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_bool.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnFence_t {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <core/instance/gryphn_instance.h>
|
||||
#include <platform/gryphn_platform_include.h>
|
||||
#include <utils/types/gryphn_image_format.h>
|
||||
#include <utils/gryphn_image_format.h>
|
||||
#include "core/output_device/gryphn_physical_output_device.h"
|
||||
|
||||
typedef struct gnSurfaceFormat_t {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include <utils/strings/gryphn_string.h>
|
||||
#include <utils/gryphn_string.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
#ifdef __OBJC__
|
||||
|
Reference in New Issue
Block a user