Initial commit - some engine bugs stopping compiling

This commit is contained in:
Will
2026-03-29 15:52:42 +01:00
commit 3d573a200e
361 changed files with 332759 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/*
* Full Vulkan
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
int main(void) {
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
return 0;
}

View File

@@ -0,0 +1,14 @@
/*
* Full Vulkan without extensions
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan" --extensions="" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
int main(void) {
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
return 0;
}

View File

@@ -0,0 +1,14 @@
/*
* Vulkan 1.0 without extensions
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.0" --extensions="" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
int main(void) {
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
return 0;
}

View File

@@ -0,0 +1,15 @@
/*
* Vulkan 1.0 with extensions
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.0" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
#include <stddef.h>
int main(void) {
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
return 0;
}

View File

@@ -0,0 +1,22 @@
/*
* Issue #171. Enums being aliased, but the enum that they are aliased to
* do not exist (e.g. because they don't exist in this profile).
* This is to make sure Vulkan handles the enums correctly as well (since
* the vulkan specification only specifies the alias and no value).
*
* See also c/compile/gl/default/007
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.1" --extensions="VK_KHR_external_memory_capabilities" c
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
#if VK_LUID_SIZE_KHR != 8
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* Issue #350, missing ENUM_MAX values
*
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.1" c
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
* RUN: $tmp/test
*/
#include <glad/vulkan.h>
int main(void) {
VkDeviceGroupPresentModeFlagBitsKHR a = VK_DEVICE_GROUP_PRESENT_MODE_FLAG_BITS_MAX_ENUM_KHR;
VkSubgroupFeatureFlagBits b = VK_SUBGROUP_FEATURE_FLAG_BITS_MAX_ENUM;
(void) a;
(void) b;
return 0;
}