Initial commit - some engine bugs stopping compiling
This commit is contained in:
20
third-party/glad/test/c/parse/001/test.c
vendored
Normal file
20
third-party/glad/test/c/parse/001/test.c
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* GL_VERTEX_ARRAY was removed in gl:core=3.2 and later reintroduced in gl=4.3.
|
||||
* Test checks if the symbol exists in the generated code.
|
||||
* Related Issues: #137, #139
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="gl:core=4.3" --extensions="" c
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/gl.h>
|
||||
|
||||
int main(void) {
|
||||
if (GL_VERTEX_ARRAY == 0x8074) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
18
third-party/glad/test/c/parse/002/test.c
vendored
Normal file
18
third-party/glad/test/c/parse/002/test.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* VK_NV_ray_tracing depends on a type which depends on an aliased type.
|
||||
* The aliased type is not part of the feature set.
|
||||
* Make sure the aliased type is part generated, since the alias is done through a typedef.
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="vulkan=1.1" --extensions="VK_NV_ray_tracing" 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) {
|
||||
/* make sure something is referenced so stuff doesn't just get optimized away */
|
||||
VkAccelerationStructureMemoryRequirementsInfoNV unused;
|
||||
(void) unused;
|
||||
return 0;
|
||||
}
|
||||
18
third-party/glad/test/c/parse/003/test.c
vendored
Normal file
18
third-party/glad/test/c/parse/003/test.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* The GL_KHR_debug has suffixed symbols for GLES but symbols without suffix for GL.
|
||||
* Make sure only the suffixed symbols appear in the generated output for gles.
|
||||
* Related Issues: #281
|
||||
*
|
||||
* See also: 004
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="gles2=3.1" --extensions="GL_KHR_debug" c
|
||||
* COMPILE: ! $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gles2.c -ldl
|
||||
* RUN: true
|
||||
*/
|
||||
|
||||
#include <glad/gles2.h>
|
||||
|
||||
int main(void) {
|
||||
(void) glObjectLabel;
|
||||
return 0;
|
||||
}
|
||||
18
third-party/glad/test/c/parse/004/test.c
vendored
Normal file
18
third-party/glad/test/c/parse/004/test.c
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* The GL_KHR_debug has suffixed symbols for GLES but symbols without suffix for GL.
|
||||
* Make sure only the symbols without suffix appear in the generated output for gl.
|
||||
* Related Issues: #281
|
||||
*
|
||||
* See also: 003
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="gl:core=3.3" --extensions="GL_KHR_debug" c
|
||||
* COMPILE: ! $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
|
||||
* RUN: true
|
||||
*/
|
||||
|
||||
#include <glad/gl.h>
|
||||
|
||||
int main(void) {
|
||||
(void) glObjectLabelKHR;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user