[Test] (BufferTest): add Binding test, and fix compile errors

This commit is contained in:
2025-07-17 22:15:31 +08:00
parent 6de362cd1c
commit 5c1b0a8f10
6 changed files with 82 additions and 5 deletions
+17 -1
View File
@@ -68,6 +68,23 @@
#include <pthread.h>
#endif
#ifndef __ANDROID__
// Define a stub for __android_log_print if not on Android
#define ANDROID_LOG_UNKNOWN 0
#define ANDROID_LOG_DEFAULT 1
#define ANDROID_LOG_VERBOSE 2
#define ANDROID_LOG_DEBUG 3
#define ANDROID_LOG_INFO 4
#define ANDROID_LOG_WARN 5
#define ANDROID_LOG_ERROR 6
#define ANDROID_LOG_FATAL 7
#define ANDROID_LOG_SILENT 8
typedef int android_LogPriority;
int __android_log_print(int prio, const char *tag, const char *fmt, ...);
#endif
#include <EGL/egl.h>
#include <GL/gl.h>
#include <GL/glext.h>
@@ -90,7 +107,6 @@
#include "MG_Util/Pipelines/PipelineExecutor.hpp"
#include "MG_Util/Pipelines/Shader/GLSLtoSPIRVPipeline.h"
#include "MG_Util/Pipelines/ShaderCompilationPipeline.h"
#include "MG_State/GLState/BufferState/BufferObject.h"