uniform pool
This commit is contained in:
11
rendering_api/vulkan/src/uniforms/vulkan_uniform_pool.c
Normal file
11
rendering_api/vulkan/src/uniforms/vulkan_uniform_pool.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "vulkan_uniform_pool.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
gnReturnCode gnCreateUniformPoolFn(gnUniformPool pool, gnDeviceHandle device) {
|
||||
pool->uniformPool = malloc(sizeof(struct gnPlatformUniformPool_t));
|
||||
|
||||
pool->uniformPool->maxUniformPools = 0;
|
||||
pool->uniformPool->uniformPoolCount = 0;
|
||||
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
15
rendering_api/vulkan/src/uniforms/vulkan_uniform_pool.h
Normal file
15
rendering_api/vulkan/src/uniforms/vulkan_uniform_pool.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <core/uniforms/gryphn_uniform_pool.h>
|
||||
#include "core/uniforms/gryphn_uniform_layout.h"
|
||||
|
||||
typedef struct VkGryphnUniformPool {
|
||||
VkDescriptorPool pool;
|
||||
gnUniformType type;
|
||||
} VkGryphnUniformPool;
|
||||
|
||||
struct gnPlatformUniformPool_t {
|
||||
int maxUniformPools;
|
||||
int uniformPoolCount;
|
||||
VkGryphnUniformPool* pools;
|
||||
};
|
||||
Reference in New Issue
Block a user