Initial commit - some engine bugs stopping compiling
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user