Commit Graph

160 Commits

Author SHA1 Message Date
Wojtek Figat
0ba261d338 Add iOS platform (refactor Mac into shared Apple platform impl) 2023-03-15 20:58:23 +01:00
Wojtek Figat
2930b0ad67 Fix crash in GPU devices init when system has no valid GPU driver installed 2023-03-13 10:25:08 +01:00
Wojtek Figat
9df7489727 Fix using Vulkan SDK header from system when cross-compiling 2023-02-28 15:49:59 +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
Wojtek Figat
8b050cf87e Use D3D11_MAP_FLAG_DO_NOT_WAIT only from main thread (worker threads can wait for data)
#942
2023-02-17 11:08:12 +01:00
Wojtek Figat
e3cfe9f009 Add support for using system-installed Vulkan SDK on Linux 2023-02-15 10:34:17 +01:00
Wojtek Figat
c878c613c7 Update consoles building 2023-02-05 23:48:11 +01:00
Wojtek Figat
45a30990ba Add GPUContext::SetBlendFactor 2023-02-01 11:07:48 +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
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
63e7fb85ec Fix GetNativePtr on Vulkan 2022-12-14 16:16:43 +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
a809a69ca0 Fixes for GPU resources C# object types 2022-12-09 11:28:39 +01:00
Wojciech Figat
df82a0f5d0 Add **GPU Memory profiler** to Editor 2022-12-08 16:30:37 +01:00
Wojtek Figat
98c29c4a4e Optimize compilation time 2022-12-03 10:42:58 +01:00
Wojtek Figat
835a230323 Refactor material shaders to use separate constant buffer (slot 1) for shared per-view constants 2022-11-27 12:06:31 +01:00
Wojtek Figat
189575efec Add GPUDevice::CreateConstantBuffer for custom constants buffers usage 2022-11-26 21:17:05 +01:00
Wojtek Figat
f37ed16270 Optimize GPUBuffer on D3D11 to not stall CPU on reading staging readback buffer 2022-11-01 21:31:42 +01:00
Wojtek Figat
3abbafa530 Fixes for Vulkan 2022-09-06 22:54:00 +02:00
Wojtek Figat
73d0fc4973 Fix UWP build 2022-09-06 19:35:11 +02:00
Wojciech Figat
f221bc6361 Minor improvements 2022-07-07 15:34:15 +02:00
Wojtek Figat
98d8543334 Fix compilation 2022-07-03 15:33:15 +02:00
Wojciech Figat
de2d041e47 Fix warning 2022-07-01 14:10:54 +02:00
Wojciech Figat
07c6c5a841 Fix issues with Vulkan backend when using DDGI 2022-07-01 14:10:01 +02:00
Wojciech Figat
427c3a9099 Fix crash when using more than 2 constant buffers with D3D12 2022-07-01 14:10:00 +02:00
Wojtek Figat
b1640515c4 Merge remote-tracking branch 'origin/gi'
# Conflicts:
#	Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp
2022-06-28 18:16:28 +02:00
Wojtek Figat
1dab45f407 Add support for renaming GPU resources (development builds only) 2022-06-22 23:08:39 +02:00
Wojciech Figat
10adf1eba1 Fix Constant Buffer binding on D3D12 when using Graphics after Compute pass with the same constants 2022-06-20 12:43:05 +02:00
Wojciech Figat
da85c1f55c Fix debug name for DirectX resources 2022-06-20 12:25:57 +02:00
Wojciech Figat
b8ff4ae2e0 Fixes for Vulkan descriptors binding 2022-06-17 10:41:23 +02:00
Wojtek Figat
a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
Wojtek Figat
785f8915b7 Merge remote-tracking branch 'origin/gi' into large-worlds
# Conflicts:
#	Source/Engine/Core/Math/Vector3.h
2022-05-21 19:45:13 +02:00
Wojtek Figat
389dfb44de Fix crash on macOS due to Vulkan timestamp queries error 2022-05-12 18:57:32 +02:00
Wojciech Figat
0a458d94c4 Add support for Volume textures to have residency changed as regular textures 2022-04-21 12:36:16 +02:00
Wojciech Figat
db0cb04b83 Merge remote-tracking branch 'origin/master' into gi 2022-04-11 10:37:23 +02:00
Wojtek Figat
c7c6acfc78 Fix DirectX crash when profiling with RenderDoc
#698
2022-04-10 14:38:15 +02:00
Wojciech Figat
5fc9cb154b Fix typo 2022-04-05 17:22:03 +02:00
Wojciech Figat
2b9a03d9bc Post-merge fixes 2022-03-28 20:04:29 +02:00
6e6f2859ab Fix switching to fullscreen mode in D3D11/D3D12 flip presentation modes 2022-03-26 16:48:46 +02:00
Wojciech Figat
92f5377f70 Merge remote-tracking branch 'origin/master' into gi
# Conflicts:
#	Flax.flaxproj
#	Source/Engine/Core/Math/Vector3.h
#	Source/Engine/Graphics/Textures/GPUTexture.cpp
#	Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp
#	Source/Engine/Terrain/Terrain.cpp
#	Source/Engine/Tools/ModelTool/ModelTool.Build.cs
#	Source/FlaxEngine.Gen.cs
#	Source/FlaxEngine.Gen.h
2022-03-22 13:00:21 +01:00
Wojciech Figat
9107897b76 Add missing pipeline barriers after Dispatch on Vulkan to prevent race-conditions with UAVs 2022-03-22 12:56:21 +01:00
Wojciech Figat
aa9161a16f Fix some issues 2022-03-22 12:55:33 +01:00
Wojciech Figat
c10cdc3d90 Fix UsedSRsMask/UsedUAsMask when binding arrays to the shader 2022-03-22 12:55:13 +01:00
Wojciech Figat
d58584e1fd Fix crash if D3D device gets DXGI_ERROR_DEVICE_REMOVED during init 2022-03-21 10:51:42 +01:00
Wojciech Figat
8d0a779ff4 Fix uploading volume texture data to GPU in D3D12 2022-03-18 17:55:35 +01:00