Commit Graph

335 Commits

Author SHA1 Message Date
Wojtek Figat
abf68328e6 Fix bug when using material instance of material that uses GlobalSDF 2023-04-12 16:59:03 +02:00
Wojtek Figat
510fc443e8 Refactor CoreCLR runtime into explicit dotnet api instead of mocking mono api
Required by platforms that will use mono under the hood for .Net 7
New `USE_CSHARP` define for C# ability
Engine doesn't use `mono_*` apis directly but via MCore/MClass/MMethod/ apis
2023-03-27 17:29:42 +02:00
Wojtek Figat
eed2cdfe04 Progress on dotnet7 runtime hosting with mono 2023-03-22 17:59:46 +01:00
Wojtek Figat
0ba261d338 Add iOS platform (refactor Mac into shared Apple platform impl) 2023-03-15 20:58:23 +01:00
Wojtek Figat
55d721f425 Fix typo 2023-02-19 14:40:35 +01:00
Wojtek Figat
9429be0830 Fix compilation warnings 2023-02-19 14:35:47 +01:00
Wojtek Figat
e644b65289 Fix potential rare issues with material shader constants containing invalid data 2023-02-18 18:25:40 +01:00
Wojtek Figat
679757942f Fix GPU Buffer Map/Unmap pair to prevent stall if map fails on DX11
#942
2023-02-17 16:28:48 +01:00
Chandler Cox
74bdcf0749 Fix not serializing post FX script fields. 2023-02-16 19:08:24 -06:00
Wojtek Figat
123b7f5433 Fix Mesh data downloading to support not yet streamed vertex/index data gather
#932
2023-02-16 13:47:43 +01:00
Wojtek Figat
77e19e148b Fix missing TraceMode blending in PostFx volume for SSR settings 2023-02-14 09:31:23 +01:00
Wojtek Figat
1034a15ddc Fix default SceneRenderTask view to have initialized matrices 2023-02-13 22:35:49 +01:00
Wojtek Figat
39443bf4d1 Reduce Render targets Pool flushing frequency to prevent memory popping 2023-02-09 13:30:46 +01:00
Wojtek Figat
d92da5ceba Upgrade GPU limits to support 16k textures 2023-02-07 13:35:00 +01:00
Wojtek Figat
9bb8dcac3d Fix GPU Limits to be clamped to the compile-time limits 2023-02-07 13:30:18 +01:00
Wojtek Figat
58e99ca469 Fix crash in renderer due to the same object being registered twice 2023-02-03 16:01:42 +01:00
Wojtek Figat
aa8d6f7c79 Fix ribbon particles triangle indices ordering to prevent artifacts 2023-02-03 13:30:48 +01:00
Wojtek Figat
baabc5d16f Add AfterForwardPass for custom postfx render location 2023-02-01 11:38:22 +01:00
Wojtek Figat
45a30990ba Add GPUContext::SetBlendFactor 2023-02-01 11:07:48 +01:00
Wojtek Figat
ab51ecddb4 Add RenderBuffers::LinkedCustomBuffers to reuse main game viewport rendered state (eg. GI) in sub-rendered view 2023-02-01 11:05:29 +01:00
Wojtek Figat
b071cdb843 Expose various engine features to scripting 2023-01-31 16:01:56 +01:00
Wojtek Figat
a0c6add732 Add ViewFlags::Sky for conditional sky/skybox rendering 2023-01-31 15:58:02 +01:00
Wojtek Figat
0709288eac Revert Depth Offset (wrong impl, can be done later) 2023-01-31 14:22:37 +01:00
Wojtek Figat
c46ea56af2 Rename DepthTestEnable to DepthEnable in Graphics PSO to match actual logic 2023-01-31 14:04:00 +01:00
Wojtek Figat
c9fce7e4aa Add GBuffer textures to the C# scripting 2023-01-31 09:28:48 +01:00
Wojtek Figat
5a30883082 Add AfterGBufferPass for custom PostFx location 2023-01-31 09:28:19 +01:00
Wojtek Figat
a219a3d2eb Add **Depth Offset to materials** 2023-01-29 22:09:51 +01:00
Wojtek Figat
a214c14a4d Add Sort Order to animated models too 2023-01-28 17:03:18 +01:00
Wojtek Figat
87549a3e6c Fix sort order usage in multi-pass drawing of the Mesh 2023-01-28 01:31:07 +01:00
Wojtek Figat
adfe3ad165 Add SortOrder to drawable object types for transparency sorting override 2023-01-26 18:37:40 +01:00
Wojtek Figat
f127bbebe1 Refactor enum flags with __underlying_type and new EnumHasAnyFlags/EnumHasAllFlags
Fixes #832
Closes #886
2023-01-15 12:44:39 +01:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojciech Figat
0595f38fe4 Fix threading issues with GPU buffers mapping 2023-01-09 22:41:06 +01:00
Wojciech Figat
67c63f1410 Optimize GPU Resource name to prevent memory allocs when changing name frequently 2023-01-09 22:40:26 +01:00
Wojciech Figat
c011e8af62 Add support for CanRender in postFx to depend on specific render setup 2023-01-06 13:45:36 +01:00
Wojtek Figat
8918c71312 Update old header usage 2022-12-22 19:31:01 +01:00
Wojciech Figat
1cf6c5233e Refactor DDGI probes to use variable ray count depending on the probe location relative to the view frustum 2022-12-15 17:33:44 +01:00
Wojciech Figat
3fcbcacd43 Fix empty draw call submitting 2022-12-15 17:33:14 +01:00
Wojciech Figat
b9244df8f7 Fix temporal anti-aliasing to provide better quality output 2022-12-15 12:40:21 +01:00
Wojciech Figat
79f4dfcaab Add GetNativePtr to GPUAdapter 2022-12-14 16:16:25 +01:00
Wojciech Figat
713aa3e0f9 Add SetResourceState and ForceRebindDescriptors to GPUContext for integration with external rendering libraries 2022-12-14 16:16:02 +01:00
Wojciech Figat
188428a7a9 Add RenderSetup and allow customizing it by gameplay and postfx 2022-12-14 14:03:59 +01:00
Wojciech Figat
c17477abff Add RenderingUpscaleLocation for customizing upscaler location in render pipeline 2022-12-13 11:52:52 +01:00
Wojciech Figat
ee019510ca Remove old RT1_FloatRGB and RT2_FloatRGB in favor pooled render targets 2022-12-13 11:52:51 +01:00
Wojtek Figat
48b88af88a Fix deadlock in GPUDevice caused by f2c594569d 2022-12-12 20:16:11 +01:00
Wojciech Figat
d4601ecb44 Add memory usage query for various asset types 2022-12-09 15:48:43 +01:00
Wojciech Figat
a809a69ca0 Fixes for GPU resources C# object types 2022-12-09 11:28:39 +01:00
Wojciech Figat
202de3499f Rename property GetElementsCount to ElementsCount in C# GPUBufferDescription 2022-12-09 11:28:17 +01:00
Wojciech Figat
7f0c73606c Improve naming various GPU resources 2022-12-09 11:27:41 +01:00