Files
Gryphn/rendering_api/vulkan/src/buffers/vulkan_buffer.h
2025-06-10 15:54:34 -04:00

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
);