gryphn texture API

This commit is contained in:
Gregory Wells
2025-06-14 21:29:21 -04:00
parent bc64fc0731
commit 8bc0f4afbc
7 changed files with 19 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ gnReturnCode gnCreateTextureFn(gnTexture texture, gnDevice device, const gnTextu
.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT,
.samples = VK_SAMPLE_COUNT_1_BIT,
.extent = {
.width = 100,
.width = info.width,
.height = info.height,
.depth = 1
},
@@ -147,6 +147,8 @@ gnReturnCode gnCreateTextureFn(gnTexture texture, gnDevice device, const gnTextu
texture->texture->width = info.width;
texture->texture->height = info.height;
texture->texture->beenWrittenToo = gnFalse;
return GN_SUCCESS;
}