gryphn buffer API
This commit is contained in:
23
src/core/buffers/gryphn_buffer.h
Normal file
23
src/core/buffers/gryphn_buffer.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include "stdlib.h"
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include <core/gryphn_handles.h>
|
||||
|
||||
typedef enum gnBufferType {
|
||||
GN_VERTEX_BUFFER = 0x00000001
|
||||
} gnBufferType;
|
||||
|
||||
typedef struct gnBufferInfo {
|
||||
size_t size;
|
||||
gnBufferType type;
|
||||
} gnBufferInfo;
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnBuffer_t {
|
||||
struct gnPlatformBuffer_t* buffer;
|
||||
gnDeviceHandle device;
|
||||
};
|
||||
#endif
|
||||
|
||||
gnReturnCode gnCreateBuffer(gnBufferHandle* buffer, gnOutputDeviceHandle device, gnBufferInfo info);
|
||||
void gnDestroyBuffer(gnBufferHandle buffer);
|
Reference in New Issue
Block a user