Drawing a textured quad

Added new assets
Loaded all texture assets into game state
Loaded the basic pipeline
Setup a hard-coded quad to test drawing
Created a very jank vertex struct
Added ReadEntireFile for filesystem
Added getting file size from file handle
Added a descriptor pool to each in flight frame
Changed Vk_BufferCreate to handle multiple uses
Added shader building to the windows.bat build script
This commit is contained in:
2025-10-04 21:42:04 +01:00
parent b1a805cea8
commit 187359f747
27 changed files with 470 additions and 57 deletions

View File

@@ -83,6 +83,19 @@ void FS_FileWrite(OS_Handle file, void *ptr, U64 size, U64 offset) {
}
}
U64 FS_FileSize(OS_Handle file) {
U64 result = 0;
HANDLE hFile = cast(HANDLE) file.v[0];
if (hFile) {
DWORD dwLow, dwHigh;
dwLow = GetFileSize(hFile, &dwHigh);
result = ((U64) dwHigh << 32) | ((U64) dwLow);
}
return result;
}
FS_List FS_PathList(M_Arena *arena, Str8 path) {
FS_List result = { 0 };