mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user