23 lines
508 B
C
23 lines
508 B
C
#pragma once
|
|
#include <vulkan/vulkan.h>
|
|
#include "utils/gryphn_bool.h"
|
|
#include <core/buffers/gryphn_buffer.h>
|
|
|
|
typedef struct VkGryphnBuffer {
|
|
VkBuffer buffer;
|
|
VkDeviceMemory memory;
|
|
} VkGryphnBuffer;
|
|
|
|
struct gnPlatformBuffer_t {
|
|
VkGryphnBuffer buffer;
|
|
|
|
// for if static draw
|
|
VkGryphnBuffer stagingBuffer;
|
|
gnBool useStagingBuffer;
|
|
};
|
|
|
|
gnReturnCode VkCreateBuffer(
|
|
VkGryphnBuffer* buffer, size_t size, gnDevice device,
|
|
VkMemoryPropertyFlags flags, VkBufferUsageFlags usage
|
|
);
|