Commit Graph

1561 Commits

Author SHA1 Message Date
daren cheng
0b97c66221 Thread safety / lifetime improvements to Slate PostBuffer
#jira UE-198072
#rb Patrick.Boutot

[CL 29493259 by daren cheng in ue5-main branch]
2023-11-06 13:28:54 -05:00
patrick boutot
7934991cf0 [Backout] - CL29374691
Original CL Desc
-----------------------------------------------------------------
WidgetComponent: Add support for invalidation.
#rb daren.cheng

[CL 29394847 by patrick boutot in ue5-main branch]
2023-11-02 22:34:02 -04:00
patrick boutot
577d4fd40b WidgetComponent: Add support for invalidation.
#rb daren.cheng

[CL 29381749 by patrick boutot in ue5-main branch]
2023-11-02 17:39:32 -04:00
jeremie roy
43e5868058 Fix TObservableArray calling IndexByPredicate instead of IndexOfByPredicate
Deprecate IndexByPredicate in favor of IndexOfByPredicate to match TArray's method

#rb patrick.boutot
#jira UE-198963

[CL 29090577 by jeremie roy in ue5-main branch]
2023-10-25 11:38:11 -04:00
daren cheng
d5b337dcc1 Add framework for processing slate scenebuffer copies
---
To create a new slate post buffer processor, inherit from 'USlateRHIPostBufferProcessor' & implement 'PostProcess'
To use in game, create a BP that derives from your buffer processor, ex 'USlatePostBufferBlur'.
Set default values on that BP, then connect the processor to a buffer in 'SlateRendererSettings'.

#jira UE-198072
[REVIEW] patrick.boutot
#rb none
#tests perf pie standalone shipping hdr-non-composite

[CL 29001080 by daren cheng in ue5-main branch]
2023-10-21 14:24:30 -04:00
daren cheng
99568cd8e6 Expose scenebuffers to UMG
---
Feature guarded by 'Slate.CopyBackbufferToSlatePostRenderTargets' disabled by default in initial commit.
To use simply call GetSlatePost0 material function after enabling CVar.
No overhead unless a widget is rendered using the material function, overhead is minimal (Single-copy 0.003 ms).
GetSlatePost1-4 require enabling via project settings.

#jira UE-186910
[REVIEW] yohann.dossantos jason.nadro


#virtualized

[CL 28772135 by daren cheng in ue5-main branch]
2023-10-13 17:06:50 -04:00
patrick boutot
cdfe77d632 Slate: Add unittest for TSlateSlotAttribute. Fix visibility sorting. The sort was not activated if there was no prerequiste.
[CL 28715983 by patrick boutot in ue5-main branch]
2023-10-12 13:08:55 -04:00
nick edwards
69726f5ee7 Update code using FJsonObject to use TCHAR strings instead of ANSI strings. Removes unnecessary string conversions and removes compilation errors when FJsonObject is updated to use FStringViews.
[CL 28536648 by nick edwards in ue5-main branch]
2023-10-06 08:18:42 -04:00
viktor chlumsky
5208c94184 Fix for MSDF texture channel mix-up on mobile
#rnx <Release Notes exclude>

[CL 28318126 by viktor chlumsky in ue5-main branch]
2023-09-28 10:33:08 -04:00
helge mathee
88a15bad52 SlateCore: Moving TAnimatedAttribute from sandbox to SlateCore
#rb steve.robb
[FYI] patrick.boutot
[FYI] halfdan.ingvarsson

[CL 28311612 by helge mathee in ue5-main branch]
2023-09-28 05:00:45 -04:00
aditya ravichandran
a8c9ea2508 TEDS-Outliner: Add support for a separate widget purpose for the Item Label Column
StarshipCoreStyle: Add icon badges to signify data has overrides from the base class
#jira UE-191898
#rb ronald.koppers

[CL 28192862 by aditya ravichandran in ue5-main branch]
2023-09-25 13:04:50 -04:00
josh adams
5d9b0e221f - Deprecated FPaths::EnginePlatformExtensionsDir() and FPaths::ProjectPlatformExtensionsDir(), as they do not work with Programs
- Introduced the following to FPaths:
   - EnginePlatformExtensionDir(Platform) - gets the Engine PlatExt dir for the given platform
   - ProjectPlatformExtensionDir(Platform) - gets the Project PlatExt dir for the given platform, where Project can be a Program
   - ConvertPath(Path, Method, ExtraData) - converts a Path for platform extensions and Restricted locations. This is going to be "ground truth" for how to get an extension directory (the two functions above call this).
- Added FConfigContext::VisualizeHierarchy() (static and member versions with differing params) that can log ini hierarchies
#rb david.harvey

[CL 28140788 by josh adams in ue5-main branch]
2023-09-22 12:33:38 -04:00
viktor chlumsky
39f9ea2c29 Slate MSDF text - multiple spread categories per glyph (improves quality in some situations)
[FYI] [at]Yohann.DosSantos, [at]Pavlo.Grubyi

#rnx <Release Notes exclude>

[CL 28130281 by viktor chlumsky in ue5-main branch]
2023-09-22 07:38:48 -04:00
viktor chlumsky
e53cfa604b Fix mixed MSDF and color glyphs in one sequence, re-enable MSDF text
[FYI] [at]Yohann.DosSantos, [at]Pavlo.Grubyi

#rnx <Release Notes exclude>

[CL 28085898 by viktor chlumsky in ue5-main branch]
2023-09-21 09:49:58 -04:00
viktor chlumsky
2ee761b197 Slate MSDF text rendering feature including effect support, disabled by CVar, support for mitered outlines
[REVIEW] [at]Yohann.DosSantos, [at]Vincent.Gauthier, [at]Patrick.Boutot, [at]Christian.Savoie, [at]JC.Authier, [at]Daren.Cheng

#rnx <Release Notes exclude>

[CL 28008156 by viktor chlumsky in ue5-main branch]
2023-09-19 15:28:40 -04:00
jeanmichel dignard
61feb630df Fix for SSlider not having a disabled style for Starship core style.
#rb none

[CL 27995439 by jeanmichel dignard in ue5-main branch]
2023-09-19 10:41:34 -04:00
steve robb
51f3ea53ae Removed ChooseClass.h includes.
#rb trivial

[CL 27823723 by steve robb in ue5-main branch]
2023-09-13 05:43:01 -04:00
steve robb
da9f5a828a Replaced TChooseClass with std::conditional_t.
#rb none
#jira UE-195271

[CL 27816205 by steve robb in ue5-main branch]
2023-09-12 19:55:55 -04:00
nick edwards
827f3fa5e7 StringView-ifying FSlateFontMeasure and FLRUStringCache
#rb Patrick.Boutot

[CL 27522380 by nick edwards in ue5-main branch]
2023-08-31 10:31:51 -04:00
louisphilippe seguin
36c722f3c4 Fix wrong printf parameters in checkf & ensuremsgf found in engine code
#rb Fabian.Giesen, Kirill.Zorin
#rnx

[CL 27519547 by louisphilippe seguin in ue5-main branch]
2023-08-31 08:56:30 -04:00
john huelin
8d86d43d5f Make OnBackBufferReadyToPresentDelegate ThreadSafe
[REVIEW] [at]mickael.gilabert
#rnx

[CL 27386667 by john huelin in ue5-main branch]
2023-08-25 14:43:02 -04:00
yohann dossantos
2d672169dc Fixed compilation tests issue in a new file
#rb trivial
#test compiled the code.

[CL 27305314 by yohann dossantos in ue5-main branch]
2023-08-23 10:33:18 -04:00
yohann dossantos
b886ef2278 Ascent/descent override: add a new option at the composite font level, to be able to consider or ignore the font face ascent/descent override, based on the composite font using it.
Fixed a few typo (ascend VS ascent, descend VS descent).

[FYI] pavlo.grubyi
#rb patrick.boutot
#test Using a font containing a font face with ascent/descent overridden, enabled or disabled the new option in the font: in font editor preview, UMG editor, and running PIE, the ascend/descent was taken into account or ignored.

[CL 27275774 by yohann dossantos in ue5-main branch]
2023-08-22 12:49:04 -04:00
george rolfe
8db390e191 [SlateCore] Added pseudo-monospacing to text shaping
#jira UE-191515
#rb jamie.dale

[CL 27169227 by george rolfe in ue5-main branch]
2023-08-17 07:22:50 -04:00
daren cheng
476aa53a7d Fix invalid shader material resource crash slate
#jira UE-185932
#rb Vincent.Gauthier
#lockdown jeanmichel.dignard

[CL 27122703 by daren cheng in ue5-main branch]
2023-08-15 17:52:38 -04:00