create vulkan textures

This commit is contained in:
Greg Wells
2025-06-08 17:35:35 -04:00
parent 6587db282d
commit 01b1e1fb7a
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#include "gryphn_texture.h"
#include "core/gryphn_platform_functions.h"
gnReturnCode gnCreateTexture(gnTexture* texture, gnDevice device, const gnTextureInfo info) {
*texture = malloc(sizeof(struct gnTexture_t));
(*texture)->device = device;
return device->deviceFunctions->_gnCreateTexture(*texture, device, info);
}