Commit Graph
100 Commits
Author SHA1 Message Date
BZLZHH 14415d42a9 [Fix] (MG_Test/VertexArrayTest): Fix incorrect check in General_BindWithoutCreation. 2025-10-02 14:39:49 +08:00
BZLZHH 000a2ba3a7 [Perf] (MG_Util/Misc): Reimplement IndexGenerator. 2025-10-02 14:22:03 +08:00
BZLZHH 19a965c1ef [Improvement] (MG_Util/Types): Use FastSTL::unordered_map as the default implementation. 2025-10-02 11:11:35 +08:00
BZLZHH 968d645d17 [Chore] (FastSTL): Add FastSTL as submodule. 2025-10-02 10:55:16 +08:00
BZLZHH f865d231d0 [Chore] (MG_Backend/Backends): Upgrade target OpenGL version to 3.3
* This is to align target OpenGL version with Minecraft 25w37a, which raised the minimum required OpenGL version to 3.3
* With this upgrade, the following features become part of the project's possible implementation scope:
  - Sampler Objects (ARB_sampler_objects)
  - Instanced arrays (ARB_instanced_arrays)
  - Explicit attribute locations (ARB_explicit_attrib_location)
  - Dual-source blending (ARB_blend_func_extended)
  - Timer queries (ARB_timer_query)
* These capabilities may be leveraged in future work depending on project needs
2025-09-14 07:47:33 +08:00
BZLZHH 7310071945 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-09-14 07:31:39 +08:00
BZLZHH 32f2b1fbb6 [Feat] (MG_Benchmark/BufferBench): Implement BufferBench. 2025-09-06 13:10:44 +08:00
BZLZHH 6d6bec3d3e [Fix] (MG_State/BufferState): Fix compiling warning. 2025-09-06 12:11:55 +08:00
BZLZHH be46765c56 [Feat] (MG_State/RenderState): Implement RenderState. 2025-09-06 10:02:01 +08:00
BZLZHH 4d45bfc242 [Feat] (MG_Util/Math): Enhance vector types. 2025-09-06 09:36:19 +08:00
BZLZHH 84b2192ca1 [Chore] (3rdparty): Update SPIRV-Cross. 2025-09-06 09:02:17 +08:00
BZLZHH fd82a2495f [Improvement] (MG_State/TextureState): Mark the mipmap as dirty by default. 2025-09-06 08:53:11 +08:00
BZLZHH 57aba42dd7 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-26 17:56:42 +08:00
BZLZHH e4c61a926a Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-25 17:15:58 +08:00
BZLZHH b86a749b00 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-25 15:21:20 +08:00
BZLZHH 262e2be9cb [Feat] (MG_Impl/Texture): Implement TexSubImage2D. 2025-08-25 15:21:08 +08:00
BZLZHH b92bc0b44a [Feat] (MG_State/TextureState): Add dirty mark for MipmapLevelInternal. 2025-08-25 15:18:34 +08:00
BZLZHH 427e069085 [Feat] (MG_State/TextureState): Implement GetMipmap for TextureObject. 2025-08-25 15:13:01 +08:00
BZLZHH 86a68df114 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-25 14:22:30 +08:00
BZLZHH 03cf61441b Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-22 16:21:51 +08:00
BZLZHH e50d4bb19c [Chore] (clang-format): Upload .clang-format 2025-08-15 18:27:35 +08:00
BZLZHH a21dcae309 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-15 18:22:03 +08:00
BZLZHH a2c5ed20de [Chore] (MG_State/ProgramState): Remove printf. 2025-08-14 23:05:25 +08:00
BZLZHH 5ee9b44f3b [Chore] (MG_Test/CMake): Set debug build type and flags. 2025-08-14 18:52:24 +08:00
BZLZHH c624cc1b0c [Refactor] (MG_Impl/Texture): Optimize code. 2025-08-14 18:48:03 +08:00
BZLZHH 62922288a1 Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-14 18:35:14 +08:00
BZLZHH 675ee4915b [Feat|Fix] (MG_Impl/Texture): Implement TexImage2D & related stuff. 2025-08-14 18:32:37 +08:00
BZLZHH f713a3785b [Feat] (MG_Util/Converters): Add converters for TextureUploadTarget and additional TextureTarget. 2025-08-14 15:21:48 +08:00
BZLZHH 115cdef6fd [Feat] (MG_State/TextureState): Add TextureUploadTarget enum. Add more TextureTarget enum. 2025-08-14 15:19:32 +08:00
BZLZHH b7d5de7ce0 [Feat] (MG_Impl/Texture): Implement IsTexture, ActiveTexture. 2025-08-13 21:59:17 +08:00
BZLZHH ded4ef195f Merge branch 'dev' of github.com:MobileGL-Dev/MobileGL into dev 2025-08-13 21:53:35 +08:00
BZLZHH b48e632829 [Fix] (MG_Impl/Buffer): Don't produce gl error in IsBuffer. 2025-08-13 21:52:29 +08:00
BZLZHH a347a9780c [Feat] (MG_Impl/Texture): Implement GenTextures, DeleteTextures, BindTexture. 2025-08-12 18:17:23 +08:00
BZLZHH 7ba3258150 [Feat] (MG_Impl/Texture): Implement basic validators for texture. 2025-08-12 18:17:14 +08:00
BZLZHH 4eba014513 [Fix] (MG_State/TextureState): Fix incorrect behavior. 2025-08-12 18:11:36 +08:00
BZLZHH a78c53ecdd [Feat] (MG_Util/Converters): Implement texture enum converters. 2025-08-12 18:05:02 +08:00
BZLZHH 256e947a5d [Fix] (MG_Impl/VertexArray|Buffer): Fix incorrect name zero operations. 2025-08-12 16:54:56 +08:00
BZLZHH 5127479874 [Chore] (CMake): Remove libshaderconv.so 2025-08-12 15:30:16 +08:00
BZLZHH 0a95d64f2b [Chore] (CMake): Support more platforms. 2025-08-12 15:28:12 +08:00
BZLZHH c50d5255ec [Chore] (CMake): Remove unnecessary args. 2025-08-12 14:55:50 +08:00
BZLZHH 323df933c4 Merge remote-tracking branch 'origin/dev' into dev 2025-08-11 23:26:25 +08:00
BZLZHH 2b685e4e18 [Fix] (MG_Impl/GLImpl): Fix missing header. 2025-08-11 23:25:21 +08:00
BZLZHH eb9866cd87 Merge remote-tracking branch 'origin/dev' into dev 2025-08-11 15:57:28 +08:00
BZLZHH b7ecc69cfb [Misc] (MG_Impl/Texture): Add texture function stubs. 2025-08-11 15:56:04 +08:00
BZLZHH 1ca0a96628 [Fix] (MG_Test): Fix compiling error. 2025-08-10 23:34:15 +08:00
BZLZHH fefccf808a [Fix] (MG_Util): Fix compiling error. 2025-08-10 23:24:49 +08:00
BZLZHH 98efe13ac5 Merge commit '12335da41bc30334c599dfc1d2e5b47dcf92ef0d' into dev 2025-08-10 23:18:41 +08:00
BZLZHH 253e14f2c9 [Improvement] (...): Optimize code. 2025-08-10 23:18:01 +08:00
BZLZHH 0b13cb5714 [Feat] (MG_State/TextureState): Implement TextureState. 2025-08-10 23:13:22 +08:00
BZLZHH 93ca669929 [Refactor] (All): Restructure include system. 2025-08-09 23:10:34 +08:00
BZLZHH b44950bddd [Chore] (CMake): Add DOWNLOAD_EXTRACT_TIMESTAMP for benchmark fetch. 2025-08-06 18:27:35 +08:00
BZLZHH fa2bf8b665 Merge commit '54826327' into dev 2025-08-06 18:09:18 +08:00
BZLZHH 75f0d27ca7 [Misc] (...): Fix CMake error. Fix unexpected error. 2025-08-06 18:04:11 +08:00
BZLZHH 25fa70ff9d [Chore] (Workflow): Rename Feat/Rewriting to dev. 2025-08-05 18:58:36 +08:00
BZLZHH d52c3ddfde [Chore] (gitignore): Ignore clangd file. 2025-08-05 18:58:36 +08:00
BZLZHH a696fb2350 [Fix] (MG_Impl/Buffer): Fix incorrect return outside if. 2025-08-05 18:58:26 +08:00
BZLZHH e8af08aff0 [Chore] (gitignore): Ignore Visual Studio Code directory. 2025-08-05 18:35:35 +08:00
BZLZHH 3d18e702b0 [Fix] (MG_State/BufferState, VertexArrayState): Correct IBO binding slot. 2025-08-03 18:56:50 +08:00
BZLZHH 26a9cafcb8 [Fix] (MG_Test): Fix compiling error. 2025-07-25 21:42:15 +08:00
BZLZHH 47f7039720 [Feat] (All): Continue building the basic structure.
Feat: implement MG_Impl/VertexArray
Feat: add tests about MG_Impl/VertexArray
Feat: add several converters
Feat: implement IsBuffer
2025-07-25 21:36:14 +08:00
BZLZHH e7a21423da [Feat] (MG_State/VertexArrayState): Add IsInteger in attribute. 2025-07-25 19:28:40 +08:00
BZLZHH 17bd9801e0 [Fix] (MG_Test/BufferTest): Fix compiling error. 2025-07-25 17:02:59 +08:00
BZLZHH 6b66608354 [Feat] (MG_Test/VertexArrayTest): Implement VertexArrayTest. 2025-07-25 16:53:10 +08:00
BZLZHH 4154d3f4ee [Feat] (MG_State/VertexArrayState): Implement VertexArrayState. 2025-07-25 16:52:38 +08:00
BZLZHH fc9018f97c [Misc] (MG_State/Buffer): Separate BufferState.cpp into 2 files. 2025-07-25 14:06:51 +08:00
BZLZHH 5962499147 [Improvement] (MG_Util/Misc): Replace byte array with 64-bit bitmap in IndexGenerator. 2025-07-25 12:40:38 +08:00
BZLZHH e79a2fa809 [Feat|Fix|Improvement] (All): Continue building the basic structure.
Feat: implement MG_Impl/Buffer
Feat: implement MG_State/ErrorState and integrate it into MG_State/GLContext
Feat: add buffer deletion management
Feat: introduce `INSERTION_POINT` (https://github.com/MobileGL-Dev/MobileGLCodeManager)
Feat: add tests about MG_Impl/Buffer and buffer deletion feature
Feat: add several converters
Fix: fix some compiling errors
Fix: fix some incorrect behaviors in MG_State/Buffer
Improvement: remove some current statements at the beginning of the source file, which will be added uniformly soon
Improvement: optimize some naming
2025-07-23 23:04:36 +08:00
BZLZHH 06804d94f8 [Chore] (CMakeLists): Remove removed files. 2025-07-22 15:08:18 +08:00
BZLZHH 0388cd316b Merge remote-tracking branch 'origin/Feat/Rewriting' into Feat/Rewriting 2025-07-20 15:41:38 +08:00
BZLZHH bd2c5e1ebc [Improvement] (MG_Utils): Improve performance in IndexGenerator. 2025-07-20 15:33:55 +08:00
BZLZHH 29a3704463 [Feat] (MG_Test/BufferTest): Add more buffer tests.
Added:
    GenerateManyNames_NoPrematureCreation
    AcquireMemory
    AcquireMemoryRangeWithoutExplicit
    AcquireMemoryRangeWithExplicit
    CopyBufferSubData
    WriteWhileMapped
    PartialUpdate
2025-07-20 02:31:57 +08:00
BZLZHH 6c920ce5dc [Feat|Fix] (MG_State/BufferState): Implement more functions.
Implemented:
    BufferObject: ReleaseMemory, FlushMemoryRange, UploadSubData, CopyDataFrom, ClearDirty

Fixed:
    BufferObject: AcquireMemory, AcquireMemoryRange
    Range1D: UnionUpdate
2025-07-20 02:30:53 +08:00
BZLZHH 46da761dcf [Chore] (gitignore): Ignore Visual Studio directory and output directory. 2025-07-19 23:45:51 +08:00
BZLZHH 3ae519d600 [Fix] (All): Prevent Windows.h from defining min and max macros. 2025-07-19 23:19:27 +08:00
BZLZHH 7cabf01944 Merge remote-tracking branch 'origin/Feat/Rewriting' into Feat/Rewriting 2025-07-17 13:21:44 +08:00
BZLZHH ea64124963 [Feat] (MG_State/GLState): Implement BufferState. 2025-07-17 13:21:28 +08:00
BZLZHH 9604bdd50a [Fix] (Build): Remove missing source file. 2025-07-16 20:40:15 +08:00
BZLZHH 9ceff83c91 Merge remote-tracking branch 'origin/Feat/Rewriting' into Feat/Rewriting
# Conflicts:
#	CMakeLists.txt
#	MobileGL/Includes.h
2025-07-16 17:55:16 +08:00
BZLZHH 62be9fed93 [Feat] (MG_State/GLState): Implement BufferObject. 2025-07-16 17:51:42 +08:00
BZLZHH 1ee6a1349c [Fix] (MG_Impl/GL): Correct GL_SHADING_LANGUAGE_VERSION in glGet. 2025-07-16 12:43:05 +08:00
BZLZHH b056e7be0a [Fix] (MG_Impl/GL): Correct GL_CONTEXT_PROFILE_MASK in glGet. 2025-07-16 12:10:04 +08:00
BZLZHH 38e3222c31 [Chore] (gitignore): Ignore CMakeSettings.json 2025-07-16 12:01:09 +08:00
BZLZHH 9194e1c97f [Feat] (All): Continue building the basic structure. 2025-07-12 20:29:20 +08:00
BZLZHH 9542512209 [Feat] (MG_Util/Converter): Implement ConvertGLEnumToString. 2025-07-12 15:42:59 +08:00
BZLZHH c552bc6a4e [Chore] (Config): Rename log file name. 2025-07-11 19:18:59 +08:00
BZLZHH f928661045 [Feat] (MG_Impl/EGL): Implement a simplified egl temporarily. 2025-07-11 19:16:56 +08:00
BZLZHH 3078667e1d [Feat] (MG_Impl/GLX): Implement glXGetProcAddress. 2025-07-11 18:47:42 +08:00
BZLZHH 62e141000e [Fix] (All): Fix compiling error. 2025-07-11 18:20:50 +08:00
BZLZHH b76c23429f [Feat] (All): Implement init, log and other related components. 2025-07-11 18:09:45 +08:00
BZLZHH 0eed6f17a2 Merge remote-tracking branch 'origin/dev' into Feat/Rewritting 2025-07-11 16:39:41 +08:00
BZLZHH 08ca58c867 Merge commit '05493e5e150febc5a1ccf236465e3859f30021b2' into Feat/Rewritting
# Conflicts:
#	README.md
2025-07-11 16:34:57 +08:00
BZLZHH 614730543c Remove most stuff, ready to rewrite this project. 2025-07-11 16:26:10 +08:00
BZLZHH 83cfacf94b [Fix] (MG_State/Buffer): Prevent crashing when buffer obj is not created but is going to be deleted. 2025-07-10 23:08:38 +08:00
BZLZHH dae5827666 [Fix] (MG_Util/GLSL): Enhance BindInputLayoutLocationsForGLSL. 2025-07-10 23:07:44 +08:00
BZLZHH b119c45c16 [Feat] (Diligent/Drawing): Convert Uint8 IBO into Uint16. 2025-07-10 19:45:24 +08:00
BZLZHH f56453093f [Improvement] (Diligent/PSO): Add UniformStageCache. 2025-07-10 17:09:53 +08:00
BZLZHH 59e0291f9e [Improvement] (HeaderSystem): Optimize header system, highly improving performance. 2025-07-10 14:01:09 +08:00
BZLZHH 833679e58a [Chore] (gitignore): Ignore Visual Studio directory and output directory. 2025-07-10 11:41:33 +08:00
BZLZHH f04207905f [Chore] (DEBUG): Enable debug. 2025-07-09 18:17:10 +08:00
BZLZHH 164c2f25d4 [Fix] (MG_Util/Program): Avoid uniform variables conflicting. 2025-07-05 11:56:15 +08:00