Commit Graph
100 Commits
Author SHA1 Message Date
swung0x48 e93dff52dc [Fix] (MG_Impl/Framebuffer, MG_State/Framebuffer, MG_Backend/DirectGLES): redone fbo attachment management. remap GL -> ES attachment names 2025-11-15 00:39:07 +08:00
swung0x48 899563165e [Feat] (MG_Backend/DirectGLES): hook up glDrawBuffers 2025-11-14 17:08:55 +08:00
swung0x48 0d3236c3cc [Feat] (MG_State/Framebuffer, MG_Impl/Framebuffer): implement glDrawBuffers in the state machine 2025-11-14 15:41:25 +08:00
swung0x48 55e89e169f [Fix?] (MG_Test/Program): why is action sometimes failing? 2025-11-13 15:07:07 +08:00
swung0x48 0d26f49d0b [Fix] (GLImpl/Program): fix log name error 2025-11-13 14:47:05 +08:00
swung0x48 7ee85e5a76 [Chore] (Defines): use DEBUG log level 2025-11-13 14:45:57 +08:00
swung0x48 89bfebf767 [Feat] (MG_Impl/Exporting): export glBindFragDataLocation and glGetFragDataLocation 2025-11-13 13:25:33 +08:00
swung0x48 b3b304e9e6 [Feat]: Implement glBindFragDataLocation and glGetFragDataLocation 2025-11-13 13:23:37 +08:00
swung0x48 5b2d18fdff [Fix]: (MG_Util/ShaderTranspiler): implement logic to reserve explicitly set frag outs 2025-11-13 12:54:05 +08:00
swung0x48 1c3a3455ab [Fix]: (MG_Util/ShaderTranspiler): rename explicitAttribLocations to explicitVertexInLocations in ProgramAttrib 2025-11-13 12:46:18 +08:00
swung0x48 2878939712 [Fix]: (MG_Util/ShaderTranspiler): add explicitFragmentOutLocations to program link attribs 2025-11-13 12:20:07 +08:00
swung0x48 cf87891b35 [Fix] (MG_Impl/GL_Program): emit missing gl error 2025-11-13 10:51:38 +08:00
swung0x48 b04481e6da [Chore] (MG_State/ProgramObject): rename attrib to vertex in for clarity 2025-11-13 10:50:37 +08:00
swung0x48 d3ea83992c [Fix]: (MG_Util/ShaderTranspiler/ShaderSourceProcessor): fix trailing \n not get removed 2025-11-13 09:39:53 +08:00
swung0x48 e6c5e132b8 [Fix] (MG_Util/Debug/Log): more log scratch space to avoid truncation 2025-11-12 22:50:21 +08:00
swung0x48 6e65942891 [Chore] (MG_Util/ShaderSourceProcessor): trim unnecessary part of shader source 2025-11-12 18:03:29 +08:00
swung0x48 755b4605e4 [Fix]: (MG_State/Program): fix incorrect Optfine behavior 2025-11-12 16:01:34 +08:00
swung0x48 9bc0ae6b97 [Chore]: (MG_State/Program): use proper enum constant, get rid of junk 2025-11-12 16:00:44 +08:00
swung0x48 bfeb827eb7 [Feat]: (MG_Test/Program): add test to check optfine shader behavior 2025-11-12 15:56:40 +08:00
swung0x48 8b8fa41ef2 [Feat]: (MG_Test/ProgramUtil): CompileAndLinkBlitProgram 2025-11-12 13:08:53 +08:00
swung0x48 f0cf49f3ec [Fix]: (MG_Util/ShaderTranspiler/TMglGlslIoResolver): guard against vertex stage 2025-11-11 17:51:33 +08:00
swung0x48 6ac0fd6f0a [Feat]: (MG_Util/ShaderTranspiler): TMglGlslIoResolver: a custom glslang IoResolver to realize glBindAttribLocation semantics 2025-11-11 17:06:46 +08:00
swung0x48 3e9b53cecc [Feat]: (MG_Util/ShaderTranspiler): the skeleton of defining a custom TIoResolver 2025-11-10 15:53:43 +08:00
swung0x48 fd3b5c3881 [Fix] (MG_Impl/GL_Sync): fix compilation error on msvc 2025-11-10 15:49:26 +08:00
swung0x48 d51d75c3ed [Fix] (CMakeLists): detect and enable LTO through CMake 2025-11-10 14:24:58 +08:00
swung0x48 c30ce008ca [Chore] (MG_State/ProgramObject): more friendly global ubo debug msg 2025-11-09 18:21:46 +08:00
swung0x48 b151b2bba7 [Fix]: build test on macOS 2025-11-08 20:02:21 +08:00
swung0x48 3f36992f98 [Fix] (MG_State/ProgramObject): don't link when shader involved failed to compile 2025-11-06 23:55:38 +08:00
swung0x48 7228b01c2d [Fix] (GLImpl/Program, MG_Backend/DirectGLES): guard against not linked program object 2025-11-06 23:21:23 +08:00
swung0x48 98a8a3a5e9 [Chore] (GLImpl/GL_Buffer): add some log 2025-11-06 00:02:02 +08:00
swung0x48 a6ffb24f30 [Fix] (MG_State/Program): fix ubo name mistaken for uniform name 2025-11-05 16:18:35 +08:00
swung0x48 13319a6847 [Feat] (MG_Test/Program): add minecraft core shader tex_color_1216 2025-11-05 15:37:55 +08:00
swung0x48 ef1924d7f9 [Feat] (MG_State/Program, DirectGLES): plumb ubo to backend 2025-11-05 15:37:10 +08:00
swung0x48 c39c03d866 [Fix] (MG_Impl/Program): DeleteShader name check bug 2025-11-05 15:12:37 +08:00
swung0x48 62798ce1b8 [Feat] (MG_State/Program): refractor UBO handling 2025-11-05 13:51:05 +08:00
swung0x48 57dd0fe480 [Feat]: implement glBindVertexAttribLocation in DirectGLES backend (fixing OptiFine?) 2025-11-04 22:16:16 +08:00
swung0x48 2f67620a6e [Fix]: some not-added stuff 2025-11-02 23:51:19 +08:00
swung0x48 1ea32e8538 [Fix] (GL_Impl/Program): fix logging 2025-11-02 11:22:52 +08:00
swung0x48 c69e83735c [Chore] (GL_Impl/Program): add more logging 2025-11-02 11:15:42 +08:00
swung0x48 6a21462554 [Fix] (GL_Impl/Program): fix dumb bug regarding IsActiveUniformBlock 2025-11-02 10:59:08 +08:00
swung0x48 1d3fbedf29 [Feat] (GL_State/Buffer, GL_Impl/Buffer): implement glBindBufferRange 2025-11-02 10:31:05 +08:00
swung0x48 4b4d38a00a [Feat] (GL_State/Buffer, GL_Impl/Buffer): implement glBindBufferBase 2025-11-02 09:34:32 +08:00
swung0x48 4e2b348e96 Merge branch 'Feat/Backend-Direct-GLES' of https://github.com/MobileGL-Dev/MobileGL into Feat/Backend-Direct-GLES 2025-11-01 23:07:32 +08:00
swung0x48 278656ac5a [Feat]: (MG_Impl/Program, MG_State/Program): implement UBO 2025-11-01 23:06:25 +08:00
swung0x48 4706dea9de [Chore] (GLImpl/Texture): adjust some log level to avoid distraction 2025-11-01 20:52:13 +08:00
swung0x48 69a867a9a9 [Feat] (GLImpl/Getter): GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 2025-11-01 20:48:15 +08:00
swung0x48 fc745c402c [Feat] (GLImpl/Getter): GL_CONTEXT_PROFILE_MASK 2025-11-01 20:41:53 +08:00
swung0x48 e190f3887d [Feat] (GLImpl/Sync): manifold for Sync 2025-10-30 22:59:39 +08:00
swung0x48 b82c481605 [Feat] (MG_Backend/DirectGLES, GL_Impl/Getter): hardcode getter, sync some sampler parameters 2025-10-29 16:39:03 +08:00
swung0x48 683d8b35bf [Feat] (MG_Impl/Exporting): Unstub MapBufferRange 2025-10-29 16:36:30 +08:00
swung0x48 2416225502 [Fix] (MG_State/ProgramState): select correct binary to do reflection 2025-10-29 10:28:59 +08:00
swung0x48 1d00808719 [Fix] (MG_Util/Types): Memcpy really should not be constexpr 2025-10-29 09:20:50 +08:00
swung0x48 798898b9ad [Feat] (MG_Impl/GLImpl): relax check for DepthComponent32 to workaround misuse in Minecraft 1.21.5+ 2025-10-28 22:27:40 +08:00
swung0x48 6927f81754 [Feat] (MG_Backend/DirectGLES): properly implement BlitFramebuffer 2025-10-28 21:48:46 +08:00
swung0x48 0e01a7281e [Fix] (MG_State/GL_Texture): SubImage2D missing a row of texels 2025-10-28 16:57:06 +08:00
swung0x48 b3e7987985 [Fix] (MG_Backend/DirectGLES): properly sync integer vertex pointer 2025-10-28 15:43:35 +08:00
swung0x48 67475fcf34 [Fix] (MG_Backend/DirectGLES): properly bind global UBO 2025-10-28 14:46:57 +08:00
swung0x48 2597a184f0 [Fix] (MG_Backend/DirectGLES): sync more states at Clear() 2025-10-28 13:45:05 +08:00
swung0x48 de78e423fd [Fix] (MG_State/GL_Texture): take GL_UNPACK_SKIP_PIXELS and GL_UNPACK_SKIP_ROWS into account 2025-10-28 12:13:46 +08:00
swung0x48 7151080a67 [Fix] (Types, GL_Texture): Memcpy insanity, proxy texture fix 2025-10-28 11:49:08 +08:00
swung0x48 bd01e4f99d [Fix] (MG_Util/TextureMetrics, MG_State/Texture): reimplement TextureMetrics, attempting to fix glTexSubImage2D 2025-10-28 10:17:56 +08:00
swung0x48 507476d513 [Feat] (MG_Backend/DirectGLES): sync PBO 2025-10-27 17:00:42 +08:00
swung0x48 56c6d73185 [Feat] (MG_State/ProgramObject, MG_Backend/DirectGLES): bind texture to uniform in backend 2025-10-27 15:45:36 +08:00
swung0x48 460b7a6eb3 [Chore] (MG_Backend/DirectGLES/Manager): log backend glGetError on failure 2025-10-27 14:25:31 +08:00
swung0x48 9883ab47fa Merge branch 'dev' into Feat/Backend-Direct-GLES 2025-10-27 13:42:31 +08:00
swung0x48 5b3d5c998a [Feat] (MG_State/ProgramObject, MG_State/GL_Program): implement sampler unit in program state 2025-10-27 13:17:42 +08:00
swung0x48 8e5cc46577 [Chore] (MG_State/ProgramObject): directly use TProgram for reflection 2025-10-27 12:59:55 +08:00
swung0x48 034aeb9b12 [Fix] (MG_State/GL_Program): wrong guard condition in Uniformv_State 2025-10-27 11:20:23 +08:00
swung0x48 5e5d0f3dbe [Feat] (MG_Test/Program): add test for real shader (Minecraft position_tex) 2025-10-27 10:53:06 +08:00
swung0x48 d73bd5dcd2 [Fix] (MG_State/ProgramObject): Properly allocate location for location-not-explicitly-defined uniforms 2025-10-27 10:51:41 +08:00
swung0x48 b91f180c7b [Fix]: fix compilation on Windows again 2025-10-26 23:06:28 +08:00
swung0x48 f951f0451f [Chore] (MG_Test/ProgramTest): add more checks to ProgramTest 2025-10-26 23:00:48 +08:00
swung0x48 63295b5493 [Chore]: fix compilation on Windows 2025-10-26 22:43:42 +08:00
swung0x48 445f55af92 [Fix]: guard against dlsym 2025-08-25 20:08:42 +08:00
swung0x48 701e93f26d [Fix] (buildsystem): add /EHsc for msvc 2025-08-25 17:34:53 +08:00
swung0x48 7b9c154f85 [Fix] (workflow): fix wrong run path 2025-08-25 16:27:33 +08:00
swung0x48 c601169b84 [Fix] (buildsystem): revert back to use 4 threads to compile 2025-08-25 16:15:32 +08:00
swung0x48 e5b91eaeba [Fix] (buildsystem): enable PIC 2025-08-25 16:13:39 +08:00
swung0x48 f5c3f12746 [Chore] (workflow): attempt to get rid of swap 2025-08-25 16:08:25 +08:00
swung0x48 c8e46fb6e2 [Chore] (workflow): let's build with all the cores available 2025-08-25 16:04:31 +08:00
swung0x48 281a28f901 [Fix] (workflow): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to silence cmake version check 2025-08-25 16:00:35 +08:00
swung0x48 c723d1c9b9 [Fix] (workflow): fix typo 2025-08-25 15:58:01 +08:00
swung0x48 d9e7b9c975 [Fix] (workflow): Update glslang external sources 2025-08-25 15:53:20 +08:00
swung0x48 5354ff04c6 [Fix] (workflow): fix typo 2025-08-25 15:49:18 +08:00
swung0x48 69f7dda3de Merge branch 'dev' of https://github.com/MobileGL-Dev/MobileGL into dev 2025-08-25 15:47:11 +08:00
swung0x48 3513e3bffe [Refactor] (buildsystem, 3rdparty): link test and benchmark to MobileGL library 2025-08-25 15:46:59 +08:00
swung0x48 a19c0a214a [Chore] (buildsystem): fix compilation and linking on Windows when building 3rdparty from source 2025-08-25 14:53:22 +08:00
swung0x48 aebfa2745a [Chore] (3rdparty): add glslang and SPIRV-Cross as submodules 2025-08-25 14:10:43 +08:00
swung0x48 2be199bad8 [Refactor] (buildsystem): make MG_Benchmark also use FindXXX.cmake 2025-08-25 13:46:00 +08:00
swung0x48 700d72f180 [Refactor] (buildsystem): don't require SPIRV-Tools 2025-08-25 13:30:48 +08:00
swung0x48 fae9bcd0df [Refactor] (buildsystem): use FindXXX.cmake to find 3rdparty libraries 2025-08-25 12:30:32 +08:00
swung0x48 591f61a9f0 [Feat] (MG_Benchmark/Program): add linking benchmark, add more metrics to benchmarks 2025-08-25 09:28:55 +08:00
swung0x48 a5ab9fe503 [Chore] (MG_State/Program): get rid of junk printing when linking 2025-08-25 09:28:09 +08:00
swung0x48 556d47a9d5 [Benchmark] (MG_Benchmark/Program): shader compilation benchmark 2025-08-24 12:56:24 +08:00
swung0x48 620391b7ec [Test] (MG_Test/ProgramTest/UniformLocationGaps): add test to check uniform locations with gap 2025-08-22 17:53:42 +08:00
swung0x48 0da2a59e4d [Test] (MG_Test/ProgramTest/UniformMatrixFunctions): get rid of junk 2025-08-22 17:35:38 +08:00
swung0x48 ee129c4fb6 [Test] (MG_Test/ProgramTest/UniformMatrixTranspose): hard assert that uniforms to be tested exists 2025-08-22 17:34:13 +08:00
swung0x48 c33056fd8e [Feat] (MG_State/Program): glUniformMatrix* with transpose, 2025-08-22 17:29:31 +08:00
swung0x48 7a7f6a0533 [Feat] (MG_Util/Metrics): GetGLTypeSize 2025-08-22 17:29:25 +08:00
swung0x48 2be194c147 [Feat] (MG_State/Program): glUniformMatrix* without transpose 2025-08-22 15:47:14 +08:00