redo some stuffs
This commit is contained in:
@@ -30,3 +30,10 @@ GN_HANDLE(gnFramebuffer);
|
|||||||
GN_HANDLE(gnBuffer);
|
GN_HANDLE(gnBuffer);
|
||||||
GN_HANDLE(gnUniformPool);
|
GN_HANDLE(gnUniformPool);
|
||||||
GN_HANDLE(gnUniform);
|
GN_HANDLE(gnUniform);
|
||||||
|
|
||||||
|
// extension objects
|
||||||
|
// GN_EXT_SYNCHRONIZATION
|
||||||
|
GN_HANDLE(gnSemaphore);
|
||||||
|
GN_HANDLE(gnFence);
|
||||||
|
// GN_EXT_QUEUES
|
||||||
|
GN_HANDLE(gnQueue); // NOTE: this is an implementaion specific object
|
||||||
|
@@ -6,6 +6,5 @@
|
|||||||
typedef struct gnSubmitInfo {
|
typedef struct gnSubmitInfo {
|
||||||
uint32_t commandBufferCount;
|
uint32_t commandBufferCount;
|
||||||
gnCommandBufferHandle* commandBuffers;
|
gnCommandBufferHandle* commandBuffers;
|
||||||
// uint32_t queueIndex;
|
|
||||||
} gnSubmitInfo;
|
} gnSubmitInfo;
|
||||||
gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info);
|
gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info);
|
||||||
|
5
projects/extensions/queues/gryphn_queue_submit.h
Normal file
5
projects/extensions/queues/gryphn_queue_submit.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
typedef struct gnQueueSubmitInfo {
|
||||||
|
|
||||||
|
} gnQueueSubmitInfo;
|
@@ -1,22 +0,0 @@
|
|||||||
#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,13 +2,9 @@
|
|||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
#include "utils/gryphn_error_code.h"
|
#include "utils/gryphn_error_code.h"
|
||||||
#include "core/src/gryphn_handles.h"
|
#include "core/src/gryphn_handles.h"
|
||||||
#include "gryphn_queued_command_pool.h"
|
|
||||||
|
|
||||||
typedef struct gnQueueFamilyProperties gnQueueFamilyProperties;
|
typedef struct gnQueueFamilyProperties gnQueueFamilyProperties;
|
||||||
|
|
||||||
typedef struct gnQueueExtFunctions {
|
typedef struct gnQueueExtFunctions {
|
||||||
gnReturnCode (*_gnGetPhysicalDeviceQueueProperties)(gnPhysicalOutputDeviceHandle device, uint32_t queueCount, gnQueueFamilyProperties* queues);
|
gnReturnCode (*_gnGetPhysicalDeviceQueueProperties)(gnPhysicalOutputDeviceHandle device, uint32_t queueCount, gnQueueFamilyProperties* queues);
|
||||||
|
|
||||||
gnReturnCode (*_gnCreateQueuedCommandPool)(gnQueuedCommandPool* commandPool, gnDeviceHandle device, gnQueuedCommandPoolInfo info);
|
|
||||||
void (*_gnDestroyQueuedCommandPool)(gnQueuedCommandPool commandPool);
|
|
||||||
} gnQueueExtFunctions;
|
} gnQueueExtFunctions;
|
||||||
|
@@ -4,8 +4,6 @@
|
|||||||
#include "utils/lists/gryphn_array_list.h"
|
#include "utils/lists/gryphn_array_list.h"
|
||||||
#include "gryphn_handles.h"
|
#include "gryphn_handles.h"
|
||||||
|
|
||||||
GN_HANDLE(gnFence);
|
|
||||||
|
|
||||||
#ifdef GN_REVEAL_IMPL
|
#ifdef GN_REVEAL_IMPL
|
||||||
struct gnFence_t {
|
struct gnFence_t {
|
||||||
struct gnPlatformFence_t* fence;
|
struct gnPlatformFence_t* fence;
|
||||||
|
@@ -3,8 +3,6 @@
|
|||||||
#include "utils/lists/gryphn_array_list.h"
|
#include "utils/lists/gryphn_array_list.h"
|
||||||
#include "gryphn_handles.h"
|
#include "gryphn_handles.h"
|
||||||
|
|
||||||
GN_HANDLE(gnSemaphore);
|
|
||||||
|
|
||||||
#ifdef GN_REVEAL_IMPL
|
#ifdef GN_REVEAL_IMPL
|
||||||
struct gnSemaphore_t {
|
struct gnSemaphore_t {
|
||||||
struct gnPlatformSemaphore_t* semaphore;
|
struct gnPlatformSemaphore_t* semaphore;
|
||||||
|
Reference in New Issue
Block a user