BZLZHH
59e0291f9e
[Improvement] (HeaderSystem): Optimize header system, highly improving performance.
2025-07-10 14:01:09 +08:00
swung0x48
8c98afb1ac
[Fix] (MG_State/Buffer): 1. Don't check on GetBufferObject(), do it on creation 2. Don't modify g_BufferMap on querying
2025-07-08 17:53:21 +08:00
swung0x48
fbb1fc1fdb
[Misc] (MG_State/Buffer): reserve buffer size rounding up to next power of 2 to make resize complexity logarithmic
2025-07-08 15:44:11 +08:00
swung0x48
e3765f1f50
[Optimization] (MG_Constant): use vector instead of unordered_set to improve performance
2025-07-08 12:39:39 +08:00
BZLZHH
4cf85c4f2a
[Fix] (MG_State/Program): Map IO binding in FinalizeProgramPipeline.
2025-07-05 10:28:39 +08:00
swung0x48
8a0d00f94b
[Optimize] (MG_State/Buffer): vector to replace umap (does that optimize anything?)
2025-06-29 01:02:00 +08:00
swung0x48
229b5f292e
[Fix] (MG_State/Texture): revert GetUnpackParam_ to private
2025-06-26 16:03:34 +08:00
swung0x48
bf8aaaa9c1
[Fix] (MG_State/VertexArray): use array to save attribs to maintain order and optimize performance
2025-06-25 16:22:16 +08:00
swung0x48
0c031d3e0b
[Fix] (MG/GLSLTool): Finally fixing blur shader!
...
- use glslang mapIO() function to correctly link shader in/out varyings
- no need to flip y (already using VK_KHR_maintenance1 to specify negative viewport height)
- use pointers to avoid unnecessary copying
2025-06-24 16:33:16 +08:00
swung0x48
2f1b06d0f9
[Fix] (MG/Framebuffer): get rid of suspicious GL_FRAMEBUFFER handling
2025-06-23 10:51:24 +08:00
swung0x48
fa657fbf0b
[Misc] (Diligent/Texture): Log unhandled texture state
2025-06-22 22:00:17 +08:00
BZLZHH
edd1ad1a80
[Fix] (MG_State/Buffer): Do not consider GL_DYNAMIC_COPY and GL_STREAM_DRAW as dynamic buffer.
2025-06-21 11:30:47 +08:00
BZLZHH
5d6bf42397
[Fix] (MG_State/Framebuffer): Correct GL_FRAMEBUFFER target handling and resource management.
2025-06-21 02:02:26 +08:00
BZLZHH
e4c77d1432
[Improvement] (MG_State/Program): Optimize the logic for DeleteShader.
2025-06-20 12:50:42 +08:00
BZLZHH
6a1b1a5ed9
[Fix] (Diligent/PSO): Miscellaneous fix.
2025-06-15 11:52:34 +08:00
BZLZHH
c5ea0a7bf1
[Fix] (BufferState): Better judgement for obj.isDynamic.
2025-06-10 01:53:42 +08:00
BZLZHH
836c169100
[Fix] (Diligent/Shader): Rename glsl builtins for Vulkan.
2025-06-09 19:10:01 +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
f5c3514dde
[Fix] (Diligent/Drawing): Bind shader resources to pipeline.
2025-06-08 00:11:24 +08:00
BZLZHH
f5a14c20a9
[Feat] (DiligentEngine): Implement most rendering by DiligentEngine.
2025-06-07 19:41:32 +08:00
BZLZHH
aa491bb801
[Fix] (BufferState): Convert access in AcquireBufferMemory.
2025-05-17 14:31:03 +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
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
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
9a692a7845
[Feat] (BufferState): Implement glDeleteBuffers.
2025-05-16 13:34:24 +08:00
swung0x48
7fdf31c782
[Misc] poking around...attempting to fix vbo problem but no avail
2025-05-11 22:59:26 +08:00
BZLZHH
d0b8777249
[Feat] (VertexArray): Implement renaming for VAO.
2025-05-11 09:32:11 +08:00
swung0x48
614c5f7324
[Fix] (BufferState, GL_Drawing): mark dirty buffers
2025-05-08 21:40:48 +08:00
swung0x48
5142f3c72b
[Fix] (TextureState, GL_Drawing): mark dirty textures to skip uploading unmodified ones
2025-05-08 20:57:16 +08:00
swung0x48
c52e28cc7a
[Fix] (TextureState): fix a horrible performance bug
2025-05-08 20:36:03 +08:00
swung0x48
40cf5a1ebb
[Optimization] (TextureState): block memcpy
2025-05-08 16:07:17 +08:00
swung0x48
d33fb15ada
[Feat] using unordered_dense somewhere...
2025-05-08 10:00:44 +08:00
swung0x48
6c1d1e0e7a
[Feat] implement renaming for buffer
2025-05-07 15:38:30 +08:00
swung0x48
b082e2e06b
use unordered_dense to mitigate __next_prime overflow error
2025-05-07 10:57:26 +08:00
swung0x48
c68cbfa37b
a bunch of junk, merging 'shitty' branch
2025-05-06 16:20:18 +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
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
30beaf6eb9
[Feat] (...): Add FramebufferState while implementing these gl functions.
2025-05-04 01:17:09 +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
00140d8b57
[Feat] (...): Add ProgramState while implementing these gl functions. Rename some functions in MG_State.
2025-05-03 02:26:03 +08:00