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:
@@ -58,6 +58,13 @@ IF %assets% equ 1 (
|
||||
xcopy /Y /Q "..\assets" "assets"
|
||||
)
|
||||
|
||||
ECHO [Building shaders]
|
||||
|
||||
IF NOT EXIST "assets\shaders" ( MKDIR "assets\shaders" )
|
||||
|
||||
glslangValidator -o "assets\shaders\basic.vert.spv" --target-env vulkan1.3 "..\code\vulkan\shaders\basic.vert"
|
||||
glslangValidator -o "assets\shaders\basic.frag.spv" --target-env vulkan1.3 "..\code\vulkan\shaders\basic.frag"
|
||||
|
||||
ECHO [Building source]
|
||||
|
||||
SET COMPILER_OPTS=-nologo -W4 -I"deps\SDL3\include" -I"deps\stb" -I"%VULKAN_SDK%\Include"
|
||||
|
||||
Reference in New Issue
Block a user