BZLZHH
6a1b1a5ed9
[Fix] (Diligent/PSO): Miscellaneous fix.
2025-06-15 11:52:34 +08:00
BZLZHH
df95930481
[Fix] (DiligentEngine): Increase the size of dynamic heap buffer.
2025-06-15 10:33:17 +08:00
BZLZHH
0c2449dc5e
[Fix] (Diligent/Buffer): Recreate buffer object when the size changes.
2025-06-15 10:32:38 +08:00
BZLZHH
8fcf58a732
[Fix] (Diligent/PSO): Correct std140 alignment in uniform offset recording.
2025-06-15 09:37:21 +08:00
BZLZHH
937cab736b
[Feat] (Diligent/Drawing): Handle uint8 in MultiDrawElementsBaseVertex.
2025-06-15 08:13:22 +08:00
BZLZHH
fa7bb59a82
[Feat] (Diligent/Drawing): Implement (Multi)DrawElementsBaseVertex.
2025-06-10 02:15:56 +08:00
BZLZHH
a0016861e8
[Fix] (Diligent/PSO): Avoid crashing when uniform data is invalid.
2025-06-10 01:55:04 +08:00
BZLZHH
964f483fd5
[Fix] (Diligent/Buffer): Make all types of buffer mappable.
2025-06-10 01:54:19 +08:00
BZLZHH
c5ea0a7bf1
[Fix] (BufferState): Better judgement for obj.isDynamic.
2025-06-10 01:53:42 +08:00
BZLZHH
aad270bcd0
[Fix] (Diligent/PSO): Do not use immutable samplers.
2025-06-10 01:00:20 +08:00
BZLZHH
994e0a6675
[Misc] (Debug): Improve some logging.
2025-06-09 19:12:25 +08:00
BZLZHH
836c169100
[Fix] (Diligent/Shader): Rename glsl builtins for Vulkan.
2025-06-09 19:10:01 +08:00
BZLZHH
2fb0690804
[Fix] (Diligent/PSO): Try to bind input layout locations for GLSL.
2025-06-09 13:38:16 +08:00
BZLZHH
30b7f4d69d
[Fix] (Diligent/Texture): Make multi-level textures correct.
2025-06-09 01:54:11 +08:00
BZLZHH
44e787c56a
[Fix] (Diligent/PSO): Get real stage for uniform sampler.
2025-06-09 00:26:41 +08:00
BZLZHH
0c4a5f54f2
[Fix] (Diligent/PSO): Avoid adding duplicate shader resources.
2025-06-09 00:25:50 +08:00
BZLZHH
b73c6e749e
[Fix] (Diligent/Texture): Remove useless judgement in glTexSubImage2D.
2025-06-08 23:23:23 +08:00
BZLZHH
1022a4dfc3
[Fix] (Diligent/Buffer): Update all dynamic buffers in glDraw*.
2025-06-08 23:00:13 +08:00
BZLZHH
ee72f7d07f
[Fix] (Diligent/Framebuffer): Make sure glBlitFramebuffer is not in renderpass.
2025-06-08 22:23:12 +08:00
BZLZHH
e645167c94
[Fix] (Diligent/PSO): Set stride value for layout element.
2025-06-08 18:56:56 +08:00
BZLZHH
c183203264
[Fix] (Diligent/Drawing): Use real type for IBO.
2025-06-08 18:17:05 +08:00
BZLZHH
4dfbc01479
[Fix] (Diligent/PSO): Build InputLayout for PSO.
2025-06-08 17:29:10 +08:00
BZLZHH
f3497bd2fa
[Improvement] (ProgramState): Rename AttributeBindings -> AttributeLocations.
2025-06-08 16:01:31 +08:00
BZLZHH
3c98bc5eca
[Improvement] (ProgramState): Remove useless programObj.attribBindings.
2025-06-08 15:54:10 +08:00
BZLZHH
292c7eeecf
[Fix] (Diligent/Buffer): Create dynamic buffer in glDraw*.
2025-06-08 13:35:32 +08:00
BZLZHH
848f110658
[Fix] (DiligentEngine): Fix some miscellaneous issues.
2025-06-08 01:57:13 +08:00
BZLZHH
979d31407f
[Fix] (DiligentEngine): Bind renderpass for PSO.
2025-06-08 01:04:05 +08:00
BZLZHH
f5c3514dde
[Fix] (Diligent/Drawing): Bind shader resources to pipeline.
2025-06-08 00:11:24 +08:00
BZLZHH
beecb3dac0
[Fix] (DiligentEngine): Use SHADER_TYPE_VS_PS as stages for uniform block.
2025-06-07 23:03:12 +08:00
BZLZHH
ea871e0188
[Fix] (DiligentEngine): Add static for ImmutableSamplers and Variables in ConfigureResourceLayout.
2025-06-07 22:42:38 +08:00
BZLZHH
ad6b9c1ca7
[Fix] (Diligent/Texture): Fix glTexSubImage2D crashing.
2025-06-07 22:14:34 +08:00
BZLZHH
2caade5a36
[Fix] (Diligent/FrameBuffer): Remove the release of RTVs in fbo 0.
2025-06-07 22:02:30 +08:00
BZLZHH
8eb055ca81
[Fix] (Diligent/FrameBuffer): Fix UpdateDefaultFramebuffer crashing.
2025-06-07 21:15:29 +08:00
BZLZHH
852b843b4a
[Fix] (Diligent/Texture): Add BIND_RENDER(/DEPTH)_TARGET for texture.
2025-06-07 20:49:48 +08:00
BZLZHH
211bf5de39
[Fix] (Diligent/Texture): Fix the 'Overwriting reference' bug in TexImage2D.
2025-06-07 20:42:25 +08:00
BZLZHH
f5a14c20a9
[Feat] (DiligentEngine): Implement most rendering by DiligentEngine.
2025-06-07 19:41:32 +08:00
BZLZHH
c95077f263
[Misc] (Debug): Add all gl enum constants in GLEnumToString.
2025-06-06 21:01:25 +08:00
BZLZHH
ca5c1a123b
Merge remote-tracking branch 'origin/dev-es' into Feat/Diligent
2025-06-05 14:03:41 +08:00
BZLZHH
6075ae1445
[Feat] (DiligentEngine): Capable to render.
2025-06-05 13:58:34 +08:00
BZLZHH
47cd496e6d
[Fix] (Init): Refactor MG_Initialize/MG_Destroy for multi-platform compatibility.
2025-06-05 07:57:07 +08:00
BZLZHH
2466897531
[Feat] (Diligent): Add Diligent Vulkan backend.
2025-05-25 11:46:38 +08:00
BZLZHH
aa491bb801
[Fix] (BufferState): Convert access in AcquireBufferMemory.
2025-05-17 14:31:03 +08:00
BZLZHH
605c5daf54
[Chore] (Global): Upgrade target GL version to 3.2.0.
2025-05-17 13:10:55 +08:00
BZLZHH
223ae1e33f
[Feat] (Getter): Handle more pnames in GetIntegerv.
2025-05-17 13:10:20 +08:00
BZLZHH
33e4b6d8de
Merge branch 'Feat/dev-es-shittily-draw' into dev-es without ShittilyDraw
...
# Conflict:
# MG/Includes.h
# Changes:
# Remove ShittilyDraw, ready to implement MG_RHI...
# Update progress.
2025-05-17 11:50:47 +08:00
BZLZHH
3b1ab8d9d9
Revert "a bunch of junk, merging 'shitty' branch"
...
This reverts commit c68cbfa37b .
2025-05-17 11:13:31 +08:00
BZLZHH
9297542dcf
Revert "use unordered_dense to mitigate __next_prime overflow error"
...
This reverts commit b082e2e06b .
2025-05-17 11:13:19 +08:00
BZLZHH
7debcd7927
[Feat] (Getter): Implement GetIntegerv.
2025-05-17 10:25:58 +08:00
BZLZHH
8805694fb9
[Misc] (ShittilyDrawing): Fix error binding of read fbo? Remove DrawBuffer.
2025-05-17 01:53:08 +08:00
BZLZHH
4316d4e13d
[Feat] (ShittilyDrawing): Implement DrawBuffer. Ensure read fbo is bound.
2025-05-17 01:25:13 +08:00
BZLZHH
4673007708
[Misc] (FramebufferState): Rename some functions.
2025-05-17 01:09:05 +08:00
BZLZHH
19e2a5dec2
[Feat] (BufferState): Implement BufferSubData.
2025-05-17 00:19:40 +08:00
BZLZHH
71df4bae3c
[Misc] (Texture): Start to support GL_DEPTH_COMPONENT32...
2025-05-17 00:03:00 +08:00
BZLZHH
e3a25c6274
[Feat] (ShittilyDrawing): Implement more Drawing functions. Make uniform correct.
2025-05-16 23:40:32 +08:00
BZLZHH
354d0882eb
[Fix] (MG_State): Make uniformObj.count correct. Disable all freeIds now.
2025-05-16 23:35:44 +08:00
BZLZHH
6901e9584f
[Feat] (BufferState): Implement MapBufferRange, FlushMappedBufferRange and CopyBufferSubData.
2025-05-16 23:23:16 +08:00
BZLZHH
95110fd989
[Misc] (Getter): Add a space character of GL_RENDERER.
2025-05-16 16:55:49 +08:00
BZLZHH
2b5b4c5008
[Misc] (Getter): Set GL_MAX_TEXTURE_SIZE to 65535.
2025-05-16 16:55:04 +08:00
BZLZHH
c848255b43
[Docs] (README): Fix the wrong Minecraft version.
2025-05-16 16:47:27 +08:00
BZLZHH
ae980326e7
Merge branch 'feat/dev-es-renaming' into feat/dev-es-shittily-draw
2025-05-16 16:37:29 +08:00
BZLZHH
06a79f2fc4
[Fix] (ShittilyDrawing): Ensure proper VBO binding when syncing VAO attributes.
2025-05-16 16:16:02 +08:00
BZLZHH
80a077acdf
[Feat] (ShittilyDrawing): Implement TexParamCache.
2025-05-16 16:03:56 +08:00
BZLZHH
9a692a7845
[Feat] (BufferState): Implement glDeleteBuffers.
2025-05-16 13:34:24 +08:00
BZLZHH
d0b8777249
[Feat] (VertexArray): Implement renaming for VAO.
2025-05-11 09:32:11 +08:00
BZLZHH
ba339ca182
[Fix] (DrawElementsSHITTILY): Disable bufferObj.dataValid check now.
2025-05-11 09:30:32 +08:00
BZLZHH
0d7b342a2e
[Docs] (README): Fix the wrong Minecraft version.
2025-05-05 10:45:19 +08:00
BZLZHH
3fa6aa660c
[Feat] (GL_Drawing): Add DrawElementsSHITTILY. Add SPIRV->GLSL ES conversion.
2025-05-05 10:04:35 +08:00
BZLZHH
31d2d62a59
[Fix] (VertexArrayState): Fix the absence of attrib enabling state after SetAttribPointer.
2025-05-05 02:25:16 +08:00
BZLZHH
74e3902951
[Fix] (ProgramState): Fix the uniform-type-changing error in UniformValue::setData.
2025-05-04 18:27:24 +08:00
BZLZHH
12649bf4d7
[Fix] (GLDefinitions): Fix wrong stub declarations of glClear(Color).
2025-05-04 11:49:54 +08:00
BZLZHH
1dddf294c9
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-05-04 02:31:30 +08:00
BZLZHH
0e7483bdd4
[Feat] (ProgramState): Implement more Global-GL-State functions.
...
- These functions were implemented:
- glBlendFunc
- glBlendFuncSeparate
- glClear
- glClearColor
- glClearDepth
- glColorMask
- glDepthFunc
- glDepthMask
- glDisable
- glEnable
- glViewport
2025-05-04 02:09:25 +08:00
BZLZHH
16559291a3
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-05-04 01:18:55 +08:00
BZLZHH
30beaf6eb9
[Feat] (...): Add FramebufferState while implementing these gl functions.
2025-05-04 01:17:09 +08:00
BZLZHH
03c9531e7a
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-05-03 23:02:44 +08:00
BZLZHH
383ec85400
[Feat] (ProgramState): Implement automatic GLSL uniform management.
...
- Add SPIRV-Cross/glslang integration for uniform reflection.
- Auto-detect and assign locations for uniforms/samplers.
- Support most types of uniform.
- Implement glUniform* functions with type safety.
- Add MG_Util::Program:
- GLSL-SPIRV conversion
- SPIRV uniform reflection
- Program uniform dumping
2025-05-03 22:50:41 +08:00
BZLZHH
dc5f74cdb9
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-05-03 02:26:05 +08:00
BZLZHH
00140d8b57
[Feat] (...): Add ProgramState while implementing these gl functions. Rename some functions in MG_State.
2025-05-03 02:26:03 +08:00
BZLZHH
282e2496da
[Chore] (UncertainBool.hpp): Add UncertainBool class.
2025-05-03 02:26:01 +08:00
BZLZHH
f550ca27c9
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-05-01 22:32:48 +08:00
BZLZHH
33104f699a
[Feat] (...): Add BufferState and VertexBufferState while implementing these gl functions.
2025-05-01 22:20:34 +08:00
BZLZHH
369b9b320b
[Improvement] (GL_Getter.*): Code improvement.
2025-05-01 22:18:48 +08:00
BZLZHH
f1aad43a3c
[Fix] (GL_Getter.cpp): Fix versionStr mistake in MG_GL::GetString.
2025-05-01 19:02:42 +08:00
BZLZHH
b4b06315d1
[Chore] (GLState.cpp): Remove unused MG_State_O.
2025-05-01 10:30:22 +08:00
BZLZHH
b4f7aefb99
[Refactor] (TextureState.*): Optimize code.
2025-05-01 10:19:50 +08:00
BZLZHH
04976daa9f
[Refactor] (...): Optimize code file structure.
2025-05-01 09:22:50 +08:00
BZLZHH
8ab90e8e60
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-04-30 18:09:46 +08:00
BZLZHH
cbff3d2714
[Improvement] (TextureState.cpp): Use memcpy rather than memmove in UpdateRegion2D.
2025-04-30 18:02:49 +08:00
BZLZHH
c5c5172087
[Fix] (TextureState.cpp): Fix texture buffer allocation in UpdateRegion2D to prevent memmove crash.
2025-04-30 17:57:12 +08:00
BZLZHH
e644efbe81
[Feat|Improvement] (...): (MG_State) Implement glPixelStorei. Optimize code.
2025-04-30 17:31:10 +08:00
BZLZHH
e19df94ece
[Perf] (TestDrawing.cpp): Improve DrawAllTextures.
2025-04-30 14:42:59 +08:00
BZLZHH
0a87addd36
[Chore] (BackendInfo.cpp|GL_Getter.cpp): Some text changes.
2025-04-30 14:25:29 +08:00
BZLZHH
ff044910a2
[Chore] (CMakeLists.txt): Rename the project name to "MobileGL".
2025-04-30 14:02:05 +08:00
BZLZHH
91fa9e2d01
[Feat] (...): Add GLES Backend.
2025-04-26 12:03:42 +08:00
BZLZHH
adbadbba30
[Chore] (GLState.cpp): Remove unused MG_State_O.
2025-04-26 10:06:45 +08:00
BZLZHH
35fb42e595
[Docs] (README.md): Update progress.
2025-04-26 09:22:11 +08:00
BZLZHH
90edb96f5a
[Docs] (README.md|PlannedFunctions.md): Update progress.
2025-04-04 23:25:52 +08:00
BZLZHH
41fefb8e54
[Feat] (...): Add global OpenGL state. Add gl texture state (almost complete for Minecraft) and implementation gl texture functions that Minecraft would use. Add gl error state.
2025-04-04 23:02:59 +08:00
BZLZHH
c291f513ca
[Chore] (GL_Common.cpp): Delete useless implement functions: glClear and glClearColor.
2025-04-04 22:57:55 +08:00
BZLZHH
deb5320a3e
[Docs] (README.md): Update Progress.
2025-04-04 15:22:07 +08:00