Vladislav Belov
3231d262ef
Fixes missing SPIR-V shader combinations.
...
We have multiple renderer backends for a while. So we can't rely on
a single CONFIG_GLES2 macro for disabling features.
(cherry picked from commit 8ee48a164a )
Signed-off-by: Itms <itms@wildfiregames.com>
2025-01-08 14:37:41 +01:00
phosit
cf92c20020
Return by value from CCamera::GetViewQuad
...
Remove some temporaries by passing the return value directly to
range-based for loops.
2024-11-17 20:27:58 +01:00
vladislavbelov
ffc4a56b9f
Revert non-ASCII characters from source and configuration files introduced in 157c6af18e.
...
Fixes #6846
Differential Revision: https://code.wildfiregames.com/D5185
This was SVN commit r27965.
2023-12-03 00:30:12 +00:00
bb
157c6af18e
Make the space in 0 A.D. non-breaking throughout the codebase.
...
Avoid cases of filenames
Update years in terms and other legal(ish) documents
Don't update years in license headers, since change is not meaningful
Will add linter rule in seperate commit
Happy recompiling everyone!
Original Patch By: Nescio
Comment By: Gallaecio
Differential Revision: D2620
This was SVN commit r27786.
2023-07-27 20:54:46 +00:00
vladislavbelov
8f78ac1ef8
Decouples renderer code from VideoMode to get backend device.
...
Differential Revision: https://code.wildfiregames.com/D5043
This was SVN commit r27693.
2023-06-14 07:06:22 +00:00
vladislavbelov
a3e8fd0fd4
Updates shadows camera frustum after its recalculation.
...
This was SVN commit r27493.
2023-01-26 17:12:57 +00:00
vladislavbelov
ccda54a662
Ands new depth stencil format to support all combinations on Vulkan.
...
Tested By: hyperion, nwtour
Differential Revision: https://code.wildfiregames.com/D4878
This was SVN commit r27421.
2023-01-12 06:32:52 +00:00
vladislavbelov
7c84c23114
Adds Vulkan backend.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4876
This was SVN commit r27412.
2023-01-10 20:22:20 +00:00
vladislavbelov
7dca5d23ad
Adds preferred depth stencil format to renderer backend.
...
This was SVN commit r27379.
2023-01-06 23:07:50 +00:00
vladislavbelov
4ed41d4a9a
Switches from pipeline state descriptions to pipeline states.
...
Tested By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4850
This was SVN commit r27328.
2022-12-31 18:29:44 +00:00
vladislavbelov
c0e888e2af
Removes SetViewport from CRenderer.
...
Differential Revision: https://code.wildfiregames.com/D4849
This was SVN commit r27313.
2022-12-29 06:53:06 +00:00
vladislavbelov
29368cf776
Adds framebuffer attachment load and store operations.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4830
This was SVN commit r27256.
2022-11-26 21:55:17 +00:00
vladislavbelov
968fd50fb0
Moves Backend enum from CVideoMode to backends.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4809
This was SVN commit r27173.
2022-10-25 22:45:54 +00:00
vladislavbelov
64bd81ae6b
Adds usage flags to backend textures.
...
This was SVN commit r27152.
2022-10-12 23:19:27 +00:00
vladislavbelov
d3f0395d2a
Adds BeginFramebufferPass/EndFramebufferPass instead of SetFramebuffer.
...
This was SVN commit r27151.
2022-10-12 21:51:27 +00:00
vladislavbelov
4d77de66d4
Removes GUI dependency from Canvas2D.
...
Initially the GetDefaultGuiMatrix function was added in 4113aa0a36 and
renamed in 04c63a4093 .
This was SVN commit r27111.
2022-10-04 20:25:39 +00:00
Stan
ec723428d1
Logic fix for very high shadows on very large screens.
...
ON large screens like 5120x1440 calculated shadow map was 32768. That
was 16x more than high setting, 32x more than medium setting and 64x
more than low setting.
After this change shadow map sizes using very high setting by resolution
will be following:
1920x1080 - 4096
2560x1440 - 4096
3840x1440 - 4096
5120x1440 - 8192
3840x2160 - 4096
7680x4320 - 8192
Patch by: @karmux
Reviewed by: @vladislavbelov, @Stan
Differential Revision: https://code.wildfiregames.com/D4723
This was SVN commit r26983.
2022-06-23 17:04:13 +00:00
vladislavbelov
62e589ab76
Adds renderer backend interface and dummy backend.
...
Comments By: phosit, Stan
Tested By: Langbart, phosit
Differential Revision: https://code.wildfiregames.com/D4636
This was SVN commit r26858.
2022-05-08 22:02:46 +00:00
vladislavbelov
3ed4eaf247
Removes ogl_WarnIfError from regular renderer code.
...
This was SVN commit r26850.
2022-05-02 21:52:21 +00:00
vladislavbelov
04bd96cee0
Moves uniform and texture binding to CDeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4631
This was SVN commit r26848.
2022-05-02 20:57:22 +00:00
vladislavbelov
df612ab8b4
Moves GLSL-specific uniform name workaround (added in 227f9e403f) to CShaderProgramGLSL.
...
This was SVN commit r26816.
2022-04-23 21:39:15 +00:00
vladislavbelov
aba7a170d9
Moves vertex attribute binding to CDeviceCommandContext.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4610
This was SVN commit r26815.
2022-04-23 20:11:14 +00:00
vladislavbelov
2c8f4c4837
Moves AssertPointersBound to draw commands to not forget to call it for new shaders.
...
In the future it allows to call AssertPointersBound in a more lazy way.
This was SVN commit r26784.
2022-04-12 18:02:08 +00:00
vladislavbelov
b4253d48cb
Moves CShaderProgram to backend and handling via CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4548
This was SVN commit r26652.
2022-03-14 22:16:14 +00:00
vladislavbelov
647fccd410
Replaces native GL types by backend format in vertex attributes in CShaderProgram.
...
This was SVN commit r26594.
2022-03-07 02:21:05 +00:00
vladislavbelov
3399791677
Adds renderer backend vertex formats and normalizes texture formats.
...
This was SVN commit r26588.
2022-03-06 22:14:57 +00:00
vladislavbelov
3a4bbd11fd
Moves all GL draw commands to CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4518
This was SVN commit r26525.
2022-03-03 07:09:59 +00:00
vladislavbelov
1ff3b45a1e
Adds more checks for vertex and index buffer creations.
...
This was SVN commit r26502.
2022-02-27 20:21:07 +00:00
vladislavbelov
da4ec670c1
Moves glViewport from CRenderer to CDeviceCommandContext.
...
This was SVN commit r26497.
2022-02-26 23:17:48 +00:00
vladislavbelov
23a023507a
Replaces GL_LINES, GL_QUADS, GL_TRIANGLE_STRIP and GL_TRIANGLE_FAN by GL_TRIANGLES.
...
This was SVN commit r26488.
2022-02-26 00:37:27 +00:00
vladislavbelov
a87cb6c94d
Moves GL depth comparison function to SamplerDesc.
...
This was SVN commit r26485.
2022-02-25 20:02:03 +00:00
vladislavbelov
36833d1df2
Moves max texture size to backend device capabilities.
...
This was SVN commit r26409.
2022-02-18 23:17:48 +00:00
vladislavbelov
5eb21cbfbf
Adds debug labels to backend framebuffers.
...
This was SVN commit r26408.
2022-02-18 23:00:11 +00:00
vladislavbelov
4de89c3db1
Moves texture management to CDeviceCommandContext, adds quality options.
...
Comments By: nwtour, Stan
Tested By: nwtour, Stan
Differential Revision: https://code.wildfiregames.com/D4488
This was SVN commit r26365.
2022-02-13 19:30:28 +00:00
vladislavbelov
a17fad722a
Moves framebuffer management to CDeviceCommandContext.
...
Tested By: Langbart, nwtour
Differential Revision: https://code.wildfiregames.com/D4475
This was SVN commit r26302.
2022-02-05 16:59:23 +00:00
vladislavbelov
ac77d1c3e0
Moves scissor test management to DeviceCommandContext.
...
This was SVN commit r26288.
2022-02-01 17:58:21 +00:00
vladislavbelov
a1f98b016b
Moves depth and stencil tests to PipelineState and DeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4471
This was SVN commit r26286.
2022-02-01 16:38:55 +00:00
vladislavbelov
709e8292b0
Moves color mask, depth mask and function management from CShaderPass to DeviceCommandContext.
...
Tested By: Langbart
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D4465
This was SVN commit r26284.
2022-01-31 20:10:06 +00:00
vladislavbelov
d4d1bc039f
Moves culling mode and front face state management to DeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4456
This was SVN commit r26259.
2022-01-27 17:25:37 +00:00
vladislavbelov
5adbe4f1a3
Moves blend state management to DeviceCommandContext. Fixes #6420
...
Tested By: Langbart
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D4441
This was SVN commit r26228.
2022-01-19 17:28:47 +00:00
vladislavbelov
795fb070af
Removes asking GL of current bind framebuffer to avoid syncs.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4422
This was SVN commit r26193.
2022-01-09 07:36:56 +00:00
vladislavbelov
27c8771a3a
Fixes debug drawing of a null shadow texture introduced in 36107cb7e1, appeared after abc3190c03.
...
Reported By: nwtour
This was SVN commit r26173.
2022-01-06 11:04:45 +00:00
vladislavbelov
fd976456d7
Performs texture uploads via DeviceCommandContext interface.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4415
This was SVN commit r26170.
2022-01-05 14:49:54 +00:00
vladislavbelov
87b5c233c5
Splits CRenderer part about scene to CSceneRenderer.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4412
This was SVN commit r26165.
2022-01-04 13:29:01 +00:00
vladislavbelov
abc3190c03
Removes binding native GLuint textures from public ShaderProgram API.
...
Differential Revision: https://code.wildfiregames.com/D4407
This was SVN commit r26143.
2021-12-30 16:37:51 +00:00
vladislavbelov
136f4621af
Fixes crash for ARB shaders because they don't provide actual locations, triggered after c2c3a3b663.
...
Reported By: nwtour
This was SVN commit r26127.
2021-12-27 21:27:56 +00:00
vladislavbelov
c2c3a3b663
Moves shadow map and terrain overlay to GL texture class continuing 57ba7c4a1c.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4393
This was SVN commit r26117.
2021-12-26 09:48:48 +00:00
Stan
c9bea80e0d
Use GLAD2 a multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator.
...
Comments by: @nwtour, @Langbart, @bb
Based on patch by: @echotangoecho
Tested on Windows 7 & 10, Ubuntu and macos.
Differential Revision: https://code.wildfiregames.com/D721
This was SVN commit r26093.
2021-12-21 22:03:31 +00:00
vladislavbelov
3809457513
Replaces unclear PreferGLSL by direct renderer backend choice.
...
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D4363
This was SVN commit r26069.
2021-12-14 06:34:02 +00:00
vladislavbelov
fa03eb3485
Switches ShadowMap debug rendering to canvas2d material.
...
This was SVN commit r25712.
2021-06-06 18:05:10 +00:00