mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
tests/cogl: Migrate just-vertex-shader
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
f3a821b4cd
commit
a3b21188c9
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-just-vertex-shader.c',
|
|
||||||
'test-pipeline-user-matrix.c',
|
'test-pipeline-user-matrix.c',
|
||||||
'test-pipeline-uniforms.c',
|
'test-pipeline-uniforms.c',
|
||||||
'test-pixel-buffer.c',
|
'test-pixel-buffer.c',
|
||||||
|
@ -87,7 +87,6 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
ADD_TEST (test_primitive, 0, 0);
|
ADD_TEST (test_primitive, 0, 0);
|
||||||
|
|
||||||
ADD_TEST (test_just_vertex_shader, 0, 0);
|
|
||||||
ADD_TEST (test_pipeline_uniforms, 0, 0);
|
ADD_TEST (test_pipeline_uniforms, 0, 0);
|
||||||
ADD_TEST (test_snippets, 0, 0);
|
ADD_TEST (test_snippets, 0, 0);
|
||||||
ADD_TEST (test_custom_attributes, 0, 0);
|
ADD_TEST (test_custom_attributes, 0, 0);
|
||||||
|
@ -20,7 +20,6 @@ void test_read_texture_formats (void);
|
|||||||
void test_write_texture_formats (void);
|
void test_write_texture_formats (void);
|
||||||
void test_alpha_textures (void);
|
void test_alpha_textures (void);
|
||||||
void test_primitive (void);
|
void test_primitive (void);
|
||||||
void test_just_vertex_shader (void);
|
|
||||||
void test_pipeline_uniforms (void);
|
void test_pipeline_uniforms (void);
|
||||||
void test_snippets (void);
|
void test_snippets (void);
|
||||||
void test_custom_attributes (void);
|
void test_custom_attributes (void);
|
||||||
|
@ -5,6 +5,7 @@ cogl_tests = [
|
|||||||
'test-depth-test',
|
'test-depth-test',
|
||||||
'test-color-hsl',
|
'test-color-hsl',
|
||||||
'test-backface-culling',
|
'test-backface-culling',
|
||||||
|
'test-just-vertex-shader',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
|
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
typedef struct _TestState
|
typedef struct _TestState
|
||||||
{
|
{
|
||||||
@ -100,7 +97,7 @@ validate_result (CoglFramebuffer *framebuffer)
|
|||||||
test_utils_check_pixel (framebuffer, 75, 25, 0x00ff0000);
|
test_utils_check_pixel (framebuffer, 75, 25, 0x00ff0000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_just_vertex_shader (void)
|
test_just_vertex_shader (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -118,3 +115,7 @@ test_just_vertex_shader (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/just-vertex-shader", test_just_vertex_shader);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user