Commit Graph

34 Commits

Author SHA1 Message Date
Dan Thompson
4eaebc2ba4 Fix for incorrect view size for RGBA16
#rb trivial
#preflight 6375741e8f4cb2e4dc6a559f

[CL 23165602 by Dan Thompson in ue5-main branch]
2022-11-16 18:49:15 -05:00
fabian giesen
392f2bd406 Fix GuardedInt compile bug in GetChecked
#rb trivial
#preflight 6362a777876630122aafdb2b

[CL 22920933 by fabian giesen in ue5-main branch]
2022-11-02 13:40:08 -04:00
fabian giesen
df1f41ea1e TCheckedSignedInt -> TGuardedSignedInt
Derived types also renamed from "checked" to "guarded" to avoid confusion with check()
Remove "Invalid()" static method. The coding style compliant "GetInvalid()" is too confusing (it sounds like it might be !IsValid()), just use the default ctor.
GetValue() -> GetChecked() with user-specified default value. This is like Get() but with a check(IsValid()) in front (to make sure results are always defined, even in non-checked builds).
Add natvis for TGuardedSignedInt
Various small cleanups: constants const->constexpr, simplify from-int ctor
Only allow arithmetic ops with maching SignedType
Move to ImageCore for now

#rb johan.torp
#preflight 6359b219ec7f617ff46398d7

[CL 22797384 by fabian giesen in ue5-main branch]
2022-10-26 18:41:26 -04:00
charles bloom
aa6ea58de0 ImageCore Gamma validation
#preflight 63554a223a547c3da3e24b9d
#rb none
#fyi alexander.suvorov

[CL 22714453 by charles bloom in ue5-main branch]
2022-10-23 10:35:57 -04:00
charles bloom
c54aea87fc fix ThumbnailManager was saving jpegs with .png extension
move some functionality from FImage to FImageView

#preflight 6331e19a7b582f58ab7abee1
#rb fabian.giesen

[CL 22192007 by charles bloom in ue5-main branch]
2022-09-26 15:27:14 -04:00
alexander suvorov
abf57a5928 Add support for adding textures with different pixels formats to a Texture2DArray.
#jira FORT-514248
#fyi charles.bloom
#preflight 632890fe8c3def91aaaa3eea

[CL 22081244 by alexander suvorov in ue5-main branch]
2022-09-19 17:25:17 -04:00
jeanmichel dignard
45cd0e3c93 Interchange
- Ported the new DDS import code from UTextureFactory to Interchange.
- Added the option to only parse the header in FDDSFile.
- Added support for texture cube arrays and volume textures.
- Dump warnings and errors in the log at the end of the import.

#jira UE-152766
#rb alexis.matte, charles.bloom
#preflight 6320c54f506f1a33e061e164

[CL 21991495 by jeanmichel dignard in ue5-main branch]
2022-09-13 16:24:03 -04:00
ricard rovira
d69f51b63a Make DetectAlphaChannel public
#preflight 62f36ee2f75a2a539c716721
[REVIEW] [at]alexei.lebedev
#rnx

#ROBOMERGE-OWNER: ricard.rovira
#ROBOMERGE-AUTHOR: ricard.rovira
#ROBOMERGE-SOURCE: CL 21352299 via CL 21352302 via CL 21352378
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21352671 by ricard rovira in ue5-main branch]
2022-08-12 04:37:59 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
charles bloom
ada7f6b1d8 Texture GetBuildRequiredEstimate better estimate of texture build memory needed
create new TextureBuildUtilities module that can be used from Engine or TextureBuildWorker
new cvar memory.WindowsPlatformMemoryGetStatsLimitTotalVirtualGB simulates a lower memory system

#rb fabian.giesen
#preflight 62b34bf8650c9d5857a38514

[CL 20786800 by charles bloom in ue5-main branch]
2022-06-22 20:21:16 -04:00
charles bloom
593fab6f69 Clamp F16 in valid range for BC6H in ISPC and ASTC, also set A to 1
even though ASTC could encode other values of A, still clamp as if it was BC6H for consistency
now all compressed HDR formats should clamp the same way that Oodle Texture currently does

#preflight 6296556c452ffe576a816993
#rb fabian.giesen

[CL 20440882 by charles bloom in ue5-main branch]
2022-05-31 15:49:40 -04:00
charles bloom
578f1d4048 Add TSF_R32F single channel float texture source format
#preflight 6272ecc3e73769b67fe88db9
#rb dan.thompson,fabian.giesen

[CL 20064522 by charles bloom in ue5-main branch]
2022-05-05 16:58:24 -04:00
charles bloom
a3c7d9cb9b fix Volume Textures with LeaveExistingMips
was not correctly mipping down Volume Depth in TextureSources
need to correct the calculation in various places where its code duped
add some size checking

#preflight 624279a8292f228e09db756d
#rb fabian.giesen

[CL 19542095 by charles bloom in ue5-main branch]
2022-03-29 10:48:15 -04:00
charles bloom
349a2035bf new DDSFile DDS import and export
supports 2d,cube,cube array,volume
supports many dxgi pixel formats

#preflight 623c8ea0ca34ffd7bf8c6d07
#rb fabian.giesen

[CL 19501289 by charles bloom in ue5-main branch]
2022-03-24 15:40:53 -04:00
charles bloom
0213e43bbf rename DDSFile namespace to UE::DDS
#rb none
#preflight none

[CL 19414224 by charles bloom in ue5-main branch]
2022-03-16 18:26:52 -04:00
charles bloom
c9433c2752 move DDSFile from TFO to ImageCore
#rb none
#preflight 62325d07ef5d0f0e8ff1bd35

[CL 19413753 by charles bloom in ue5-main branch]
2022-03-16 18:01:49 -04:00
charles bloom
04ffabc485 ImageWrapper and import/export refactor
FImage is now the standard preferred type for a bag of pixels
FImageView can point at pixels without owning an allocation
ERawImageFormat (FImage) converts to ETextureSourceFormat
FImageUtils provides generic load/save and get/set from FImage
major cleanup in the ImageWrappers
new preferred API is through ImageWrapperModule Compress/Decompress
SetRaw/GetRaw functions cleaned up to not have undefined behavior on unexpected formats
ImageWrapper output added for HDR,BMP,TGA
RGBA32F format added and supported throughout import/export
EditorFactories import/export made more generic, most image types handled the same way using FImage now
Deprecate old TSF RGBA order pixel formats
Fix many crashes or bad handling of unusual pixel formats
Pixel access functions should be used instead of switches on pixel type

#preflight 6230ade7e65a7e65d68a187c
#rb julien.stjean,martins.mozeiko,dan.thompson,fabian.giesen

[CL 19397199 by charles bloom in ue5-main branch]
2022-03-15 18:29:37 -04:00
eric renaudhoude
ed6d144ab2 ColorManagement: Removing custom coordinate type to replace it with the now available FVector2d.
#jira none
#rb rod.bogart
#preflight 6221134a6a33f9b416b42d3d

[CL 19250048 by eric renaudhoude in ue5-main branch]
2022-03-03 14:32:54 -05:00
charles bloom
b6c85ccee4 Improve Texture Cook ParallelFors
add Insights markup
factor out job count comptutation and ensure it doesn't make tiny jobs
make VT tiles non-parallel because they are already parallel at the tile level

#rb fabian.giesen,arne.schober
#preflight none

[CL 18918813 by charles bloom in ue5-main branch]
2022-02-09 11:27:22 -05:00
aurel cordonnier
34f55d3a4a Merge from Release-Engine-Test @ 17946149 to UE5/Main
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17949667 by aurel cordonnier in ue5-main branch]
2021-10-27 15:14:40 -04:00
eric renaudhoude
cf89a6470e Color Management: Adding (advanced) source encodings for textures.
#rb rod.bogart
#jira none
#preflight 6143e5484778fa00017df627

[CL 17547199 by eric renaudhoude in ue5-main branch]
2021-09-16 22:13:33 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
rolando caloca
997499e35a F - Copy from 11287679
Support for Half (R16F) textures
[FYI] Dmitriy.Dyomin, Brian.White, Will.Damon, Luke.Thatcher
#jira UE-91681

#ROBOMERGE-SOURCE: CL 12766470 via CL 12766473 via CL 12766477
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v678-12743200)

[CL 12766484 by rolando caloca in Main branch]
2020-04-13 17:28:42 -04:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
jeremy moore
19c79b7a06 Added texture source image support for G16
Needed for heightmaps


#ROBOMERGE-SOURCE: CL 8966460 via CL 8966466 via CL 8966471
#ROBOMERGE-BOT: (v436-8951088)

[CL 8966475 by jeremy moore in Main branch]
2019-09-22 16:19:26 -04:00