giving up on this extension for now
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
#include <utils/gryphn_error_code.h>
|
||||
#include "gryphn_handles.h"
|
||||
|
||||
typedef enum gnCommandPoolFlags {
|
||||
typedef enum gnCommandPoolFlagBits {
|
||||
GN_NO_FLAGS = 0,
|
||||
GN_REUSE_COMMAND_BUFFERS = 1
|
||||
} gnCommandPoolFlags;
|
||||
GN_REUSE_COMMAND_BUFFERS = 1 << 0
|
||||
} gnCommandPoolFlagBits;
|
||||
typedef gnFlags gnCommandPoolFlags;
|
||||
|
||||
typedef struct gnCommandPoolInfo {
|
||||
// uint32_t queueIndex;
|
||||
gnCommandPoolFlags flags;
|
||||
} gnCommandPoolInfo;
|
||||
|
||||
|
@@ -26,8 +26,6 @@ GN_HANDLE(gnShaderModule);
|
||||
GN_HANDLE(gnGraphicsPipeline);
|
||||
GN_HANDLE(gnCommandPool);
|
||||
GN_HANDLE(gnCommandBuffer);
|
||||
GN_HANDLE(gnSemaphore);
|
||||
GN_HANDLE(gnFence);
|
||||
GN_HANDLE(gnFramebuffer);
|
||||
GN_HANDLE(gnBuffer);
|
||||
GN_HANDLE(gnUniformPool);
|
||||
|
22
projects/extensions/queues/gryphn_queued_command_pool.h
Normal file
22
projects/extensions/queues/gryphn_queued_command_pool.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "command/command_pool/gryphn_command_pool.h"
|
||||
#include <gryphn_handles.h>
|
||||
|
||||
GN_HANDLE(gnQueuedCommandPool);
|
||||
|
||||
typedef struct gnQueuedCommandPoolInfo {
|
||||
gnCommandPoolFlags flags;
|
||||
uint32_t queueFamilyIndex;
|
||||
} gnQueuedCommandPoolInfo;
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnQueuedCommandPool_t {
|
||||
struct gnPlatformCommandPool_t* commandPool;
|
||||
gnDevice device;
|
||||
gnInstance instance;
|
||||
gnCommandPoolInfo info;
|
||||
};
|
||||
#endif
|
||||
|
||||
gnReturnCode gnCreateQueuedCommandPool(gnQueuedCommandPool* commandPool, gnDeviceHandle device, gnQueuedCommandPoolInfo info);
|
||||
void gnDestroyQueuedCommandPool(gnQueuedCommandPool commandPool);
|
@@ -2,9 +2,13 @@
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/src/gryphn_handles.h"
|
||||
#include "gryphn_queued_command_pool.h"
|
||||
|
||||
typedef struct gnQueueFamilyProperties gnQueueFamilyProperties;
|
||||
|
||||
typedef struct gnQueueExtFunctions {
|
||||
gnReturnCode (*_gnGetPhysicalDeviceQueueProperties)(gnPhysicalOutputDeviceHandle device, uint32_t queueCount, gnQueueFamilyProperties* queues);
|
||||
|
||||
gnReturnCode (*_gnCreateQueuedCommandPool)(gnQueuedCommandPool* commandPool, gnDeviceHandle device, gnQueuedCommandPoolInfo info);
|
||||
void (*_gnDestroyQueuedCommandPool)(gnQueuedCommandPool commandPool);
|
||||
} gnQueueExtFunctions;
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "gryphn_handles.h"
|
||||
#include "extensions/synchronization/semaphore/gryphn_semaphore.h"
|
||||
|
||||
typedef struct gnPresentSyncInfo {
|
||||
uint32_t waitCount;
|
||||
|
@@ -2,6 +2,8 @@
|
||||
#include "stdint.h"
|
||||
#include "core/src/renderpass/gryphn_render_pass_descriptor.h"
|
||||
#include "core/src/gryphn_handles.h"
|
||||
#include "extensions/synchronization/semaphore/gryphn_semaphore.h"
|
||||
#include "extensions/synchronization/fence/gryphn_fence.h"
|
||||
|
||||
typedef struct gnSubmitSyncInfo {
|
||||
uint32_t waitCount;
|
||||
|
@@ -4,6 +4,8 @@
|
||||
#include "utils/lists/gryphn_array_list.h"
|
||||
#include "gryphn_handles.h"
|
||||
|
||||
GN_HANDLE(gnFence);
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnFence_t {
|
||||
struct gnPlatformFence_t* fence;
|
||||
|
@@ -2,5 +2,6 @@
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/src/gryphn_handles.h"
|
||||
#include "semaphore/gryphn_semaphore.h"
|
||||
|
||||
gnReturnCode gnPresentationQueueGetImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphoreHandle semaphore, uint32_t* imageIndex);
|
||||
|
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include <extensions/synchronization/fence/gryphn_fence.h>
|
||||
#include <extensions/synchronization/semaphore/gryphn_semaphore.h>
|
||||
#include "core/src/gryphn_handles.h"
|
||||
|
||||
typedef struct gnSubmitSyncInfo gnSubmitSyncInfo;
|
||||
|
@@ -3,6 +3,8 @@
|
||||
#include "utils/lists/gryphn_array_list.h"
|
||||
#include "gryphn_handles.h"
|
||||
|
||||
GN_HANDLE(gnSemaphore);
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnSemaphore_t {
|
||||
struct gnPlatformSemaphore_t* semaphore;
|
||||
|
Reference in New Issue
Block a user