vulkan: add MwVulkanSupported for telegraphing whether vulkan is avaliable on the user's computer

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@120 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
IoIxD
2025-10-01 23:09:38 +00:00
parent cc9a63b67e
commit ddaaa37039
3 changed files with 59 additions and 8 deletions

View File

@@ -627,6 +627,11 @@ void vulkan_setup(MwWidget handle) {
}
int main() {
if(!MwVulkanSupported()) {
printf("Vulkan not found or unsupported on target platform.\n");
return 1;
}
window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 450,
MwNtitle, "hello world",
NULL);