Initial commit - some engine bugs stopping compiling
This commit is contained in:
18
third-party/glad/test/c/compile/vulkan/alias/001/test.c
vendored
Normal file
18
third-party/glad/test/c/compile/vulkan/alias/001/test.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Full Vulkan with aliasing
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --loader --alias
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
#if !defined(VK_EXT_debug_report) || !defined(VK_VERSION_1_0)
|
||||
#error
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
18
third-party/glad/test/c/compile/vulkan/alias/002/test.c
vendored
Normal file
18
third-party/glad/test/c/compile/vulkan/alias/002/test.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Full Vulkan with aliasing and without extensions
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" --extensions="" c --loader --alias
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
#if defined(VK_EXT_debug_report) || !defined(VK_VERSION_1_0)
|
||||
#error
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
13
third-party/glad/test/c/compile/vulkan/debug/001/test.c
vendored
Normal file
13
third-party/glad/test/c/compile/vulkan/debug/001/test.c
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Issue #335. Debug functions are not guarded/protected by platform.
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.1" --extensions=VK_KHR_external_memory_win32 c --debug
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
14
third-party/glad/test/c/compile/vulkan/default/001/test.c
vendored
Normal file
14
third-party/glad/test/c/compile/vulkan/default/001/test.c
vendored
Normal 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;
|
||||
}
|
||||
14
third-party/glad/test/c/compile/vulkan/default/002/test.c
vendored
Normal file
14
third-party/glad/test/c/compile/vulkan/default/002/test.c
vendored
Normal 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;
|
||||
}
|
||||
14
third-party/glad/test/c/compile/vulkan/default/003/test.c
vendored
Normal file
14
third-party/glad/test/c/compile/vulkan/default/003/test.c
vendored
Normal 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;
|
||||
}
|
||||
15
third-party/glad/test/c/compile/vulkan/default/004/test.c
vendored
Normal file
15
third-party/glad/test/c/compile/vulkan/default/004/test.c
vendored
Normal 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;
|
||||
}
|
||||
22
third-party/glad/test/c/compile/vulkan/default/005/test.c
vendored
Normal file
22
third-party/glad/test/c/compile/vulkan/default/005/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/vulkan/default/006/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/vulkan/default/006/test.c
vendored
Normal 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;
|
||||
}
|
||||
22
third-party/glad/test/c/compile/vulkan/header-only+mx/001/test.c
vendored
Normal file
22
third-party/glad/test/c/compile/vulkan/header-only+mx/001/test.c
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Full vulkan, header only, mx
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --loader --header-only --mx
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_VULKAN_IMPLEMENTATION
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
typedef void (*VOID_FUNCPTR)(void);
|
||||
VOID_FUNCPTR loader_userptr(void *userptr, const char *name) { (void) name; (void) userptr; return NULL; }
|
||||
VOID_FUNCPTR loader(const char *name) { (void) name; return NULL; }
|
||||
|
||||
int main(void) {
|
||||
GladVulkanContext context = {0};
|
||||
(void) gladLoadVulkanContextUserPtr(&context, NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkanContext(&context, NULL, loader);
|
||||
(void) gladLoaderLoadVulkanContext(&context, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
23
third-party/glad/test/c/compile/vulkan/header-only+mx/002/test.c
vendored
Normal file
23
third-party/glad/test/c/compile/vulkan/header-only+mx/002/test.c
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Full vulkan without extensions, header only, mx
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" --extensions="" c --loader --header-only --mx
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_VULKAN_IMPLEMENTATION
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
typedef void (*VOID_FUNCPTR)(void);
|
||||
VOID_FUNCPTR loader_userptr(void *userptr, const char *name) { (void) name; (void) userptr; return NULL; }
|
||||
VOID_FUNCPTR loader(const char *name) { (void) name; return NULL; }
|
||||
|
||||
int main(void) {
|
||||
GladVulkanContext context = {0};
|
||||
(void) gladLoadVulkanContextUserPtr(&context, NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkanContext(&context, NULL, loader);
|
||||
(void) gladLoaderLoadVulkanContext(&context, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
19
third-party/glad/test/c/compile/vulkan/header-only/001/test.c
vendored
Normal file
19
third-party/glad/test/c/compile/vulkan/header-only/001/test.c
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Full Vulkan header only
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --loader --header-only
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_VULKAN_IMPLEMENTATION
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
#if !defined(VK_EXT_debug_report) || !defined(VK_VERSION_1_0)
|
||||
#error
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
19
third-party/glad/test/c/compile/vulkan/header-only/002/test.c
vendored
Normal file
19
third-party/glad/test/c/compile/vulkan/header-only/002/test.c
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Full Vulkan without extensions, header only
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" --extensions="" c --loader --header-only
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_VULKAN_IMPLEMENTATION
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
#if defined(VK_EXT_debug_report) || !defined(VK_VERSION_1_0)
|
||||
#error
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
25
third-party/glad/test/c/compile/vulkan/mx+mx-global/001/test_disabled.c
vendored
Normal file
25
third-party/glad/test/c/compile/vulkan/mx+mx-global/001/test_disabled.c
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Full vulkan, mx
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --loader --mx --mx-global
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
typedef void (*VOID_FUNCPTR)(void);
|
||||
VOID_FUNCPTR loader_userptr(void *userptr, const char *name) { (void) name; (void) userptr; return NULL; }
|
||||
VOID_FUNCPTR loader(const char *name) { (void) name; return NULL; }
|
||||
|
||||
int main(void) {
|
||||
GladVulkanContext context = {0};
|
||||
(void) gladLoadVulkanUserPtr(NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkanContextUserPtr(&context, NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkan(NULL, loader);
|
||||
(void) gladLoadVulkanContext(&context, NULL, loader);
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
(void) gladLoaderLoadVulkanContext(&context, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
25
third-party/glad/test/c/compile/vulkan/mx+mx-global/002/test_disabled.c
vendored
Normal file
25
third-party/glad/test/c/compile/vulkan/mx+mx-global/002/test_disabled.c
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Full vulkan without extensions, mx
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" --extensions="" c --loader --mx --mx-global
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl -g
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
typedef void (*VOID_FUNCPTR)(void);
|
||||
VOID_FUNCPTR loader_userptr(void *userptr, const char *name) { (void) name; (void) userptr; return NULL; }
|
||||
VOID_FUNCPTR loader(const char *name) { (void) name; return NULL; }
|
||||
|
||||
int main(void) {
|
||||
GladVulkanContext context = {0};
|
||||
(void) gladLoadVulkanUserPtr(NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkanContextUserPtr(&context, NULL, loader_userptr, NULL);
|
||||
(void) gladLoadVulkan(NULL, loader);
|
||||
(void) gladLoadVulkanContext(&context, NULL, loader);
|
||||
(void) gladLoaderLoadVulkan(NULL, NULL, NULL);
|
||||
(void) gladLoaderLoadVulkanContext(&context, NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
13
third-party/glad/test/c/compile/vulkan/on-demand/001/test.c
vendored
Normal file
13
third-party/glad/test/c/compile/vulkan/on-demand/001/test.c
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Full on demand Vulkan
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --on-demand
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/vulkan.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/vulkan.h>
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
13
third-party/glad/test/c/compile/vulkan/on-demand/002/test.c
vendored
Normal file
13
third-party/glad/test/c/compile/vulkan/on-demand/002/test.c
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Full on demand Vulkan with loader
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan" c --on-demand --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) {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user