77 Commits

Author SHA1 Message Date
devin doucette
01cb852a23 Deprecated the old names and paths for TSharedString
#rb Zousar.Shaker
#rnx

[CL 34567121 by devin doucette in ue5-main branch]
2024-06-21 12:52:32 -04:00
charles bloom
0427710933 TextureFormatASTC : make BC7 HQ mapping configurable with new config DefaultASTCQualityBySizeHQ and respect per-texture quality override
only affects astenc not ISPC
#rb fabian.giesen

[CL 32837387 by charles bloom in ue5-main branch]
2024-04-09 16:05:47 -04:00
dan thompson
2ed61a6050 Updating FCompressedImage2D to NumSlices from SizeZ, for clarity.
Tested cooked build diff for sanity as this should only ever affect in-memory editor values.

#jira UE-149124
#rb fabian.giesen

[CL 31997496 by dan thompson in ue5-main branch]
2024-03-04 14:39:15 -05:00
dan thompson
f4c4e7731c Backing out the typecast stuff again - this time because there are incoming changes from UE that will cause big headaches. Gonna wait until they land in this stream to try this again.
[Backout] - CL25586915
[FYI] Dan.Thompson
Original CL Desc
-----------------------------------------------------------------
Enable the typecast error now that theoretically they are all fixed (this time :( ).
#rb none
#jira UE-166462
#preflight 646bfa2f656436839e398ad0

[CL 25593278 by dan thompson in ue5-main branch]
2023-05-23 18:34:21 -04:00
dan thompson
4fed9eef3b Enable the typecast error now that theoretically they are all fixed (this time :( ).
#rb none
#jira UE-166462
#preflight 646bfa2f656436839e398ad0

[CL 25592286 by dan thompson in ue5-main branch]
2023-05-23 18:14:27 -04:00
dan thompson
278d3b0ce3 Type safety set to off to fix build issue as I missed some stuff.
#rb none
#preflight none

[CL 25514931 by dan thompson in ue5-main branch]
2023-05-17 15:58:28 -04:00
dan thompson
042c6053e7 Typecast warning fixups
#jira UE-166462
#rb fabian.giesen
#preflight 6463ec86d62884a78fd92874

[CL 25514891 by dan thompson in ue5-main branch]
2023-05-17 15:57:20 -04:00
bryan sefcik
da92084a12 Optimized out more private modules includes and dependencies.
#preflight 64627c382965f6ea8ea83bd6

[CL 25479683 by bryan sefcik in ue5-main branch]
2023-05-15 16:26:12 -04:00
bryan sefcik
d205101cc8 Removed unnecessary private include modules.
#preflight 645da640cf788a25581110bb

[CL 25451545 by bryan sefcik in ue5-main branch]
2023-05-12 12:13:52 -04:00
charles bloom
420b6f6adb TextureCompressorModule : run hashing for metadata on an async task
change FImage passed to TextureFormat to be const, it must not be changed becausing hashing is running threaded
remove early frees of intermediate image; this increases peak memory use

#preflight https://horde.devtools.epicgames.com/job/643ff4a3090323f9a3f7695e
#rb dan.thompson

[CL 25116608 by charles bloom in ue5-main branch]
2023-04-19 17:29:39 -04:00
Dan Thompson
9a6a7a84d9 Plumb the mip layout down to the child texture ddc key versions as certain child formats need to know mip dimensions in order to know if aspects of the build affect the textures, as well as note in the extended data whether the texture tiling is sensitive to LODBias so that textures that change layouts as a result of that are independent in the ddc.
This also fixes the missing include path for TextureFormat.Build.cs

#rb fabian.giesen
#rb charles.bloom
#preflight 6421fa27974dfaa53cb188e5

[CL 24808879 by Dan Thompson in ue5-main branch]
2023-03-27 16:39:53 -04:00
Dan Thompson
6acfb3256c [Backout] - CL24678894
#fyi Dan.Thompson
Original CL Desc
-----------------------------------------------------------------
Plumb the mip layout down to the child texture ddc key versions as certain child formats need to know mip dimensions in order to know if aspects of the build affect the textures.
#rb fabian.giesen
#rb charles.bloom
#preflight 641378f03f3d31c94a2e86b5
#preflight 64149d297d1280ffe750d78e

[CL 24691763 by Dan Thompson in ue5-main branch]
2023-03-17 13:13:02 -04:00
Dan Thompson
98bcf4f1cb Plumb the mip layout down to the child texture ddc key versions as certain child formats need to know mip dimensions in order to know if aspects of the build affect the textures.
#rb fabian.giesen
#rb charles.bloom
#preflight 641378f03f3d31c94a2e86b5

[CL 24678894 by Dan Thompson in ue5-main branch]
2023-03-16 16:42:02 -04:00
Dan Thompson
5a737ea6bc Texture tiling fix.
Certain platforms that tile textures will tile non pow2 textures with mips different than non pow2 textures without mips, so we need to plumb down information about the mip chain to the tiling texture formats.
#rb fabian.giesen
#preflight 64068553aa00423335f30765

[CL 24546549 by Dan Thompson in ue5-main branch]
2023-03-07 15:15:48 -05:00
Dan Thompson
8b4692d085 Remove "mutable" parts of the build settings. For platforms that need the mip dimensions, this is now piped down via a parameter instead of violating "const".
#rb fabian.giesen
#rb charles.bloom
#preflight 636987d7dc30a4ce96651026

[CL 23021179 by Dan Thompson in ue5-main branch]
2022-11-07 18:29:15 -05:00
charles bloom
6f91f54443 ISPCTexcomp fix inconsistent behavior normalizing normals unlike all other TextureFormats
maintain legacy behavior for existing textures

#jira UE-166346
#rb dan.thompson,fabian.giesen
#preflight none

[CL 22679097 by charles bloom in ue5-main branch]
2022-10-20 21:42:01 -04:00
fabian giesen
8054068be0 ISPC texcomp fix for certain solid-color blocks with low alpha values.
#rb dan.thompson, charles.bloom
#preflight 6328c6c0f87253e021d6faeb

[CL 22105648 by fabian giesen in ue5-main branch]
2022-09-20 19:52:57 -04:00
charles bloom
7b03388528 Normal Maps were not renormalizing normal vectors after generating mips
caused reduced length normals, which then bends them when we drop components for compression in BC5 or ASTC
don't change existing content, only normalize when new option bNormalizeNormals is enabled
note that ISPCTexComp is inconsistently doing normalization, no other tex formats do

#preflight 632270e0a514fd1e3751a141
#rb fabian.giesen

[CL 22028968 by charles bloom in ue5-main branch]
2022-09-15 10:49:25 -04:00
bryan sefcik
892629fe83 Fixed some paths that got updated to include the full "ThirdParty" path.
#jira
#preflight 6320877bbc40358fa2995069

[CL 21997782 by bryan sefcik in ue5-main branch]
2022-09-13 21:48:33 -04:00
bryan sefcik
a3dddc6630 Pass 1 on Developer include fixes:
Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631e281694758d0bf2ea1399

[CL 21960082 by bryan sefcik in ue5-main branch]
2022-09-11 18:32:18 -04:00
adam kinge
446e55b108 Add full path to macOS dylib
#jira UE-157345
#review @jack.porter
#fyi will.damon, billy.quick
#preflight 62c49ab32823f28cf247311f

[CL 20967967 by adam kinge in ue5-main branch]
2022-07-06 11:41:18 -04:00
charles bloom
60eb0735b4 reduce texture build memory use by freeing source images when no longer needed
#preflight 62b72389ff7f5dd87e2f5573
#rb fabian.giesen,dan.thompson

[CL 20830728 by charles bloom in ue5-main branch]
2022-06-27 10:44:18 -04:00
Dan Thompson
0c889685e3 Updating the mip packing and tiling interfaces to not require image bits. This is required to determine memory layouts for textures prior to launching texture builds.
#rb fabian.geisen
#preflight 62a90ea9943e7bb256c39717

[CL 20659876 by Dan Thompson in ue5-main branch]
2022-06-14 19:00:42 -04:00
will damon
d8552d7b32 Update ISPCTextureCompressor libraries.
- Latest ISPCTextureCompressor brings a number of bug fixes and includes Apple silicon support.
- Update IntelISPCTexComp.Build.cs to reference new paths
- Update Windows (x64), Linux (thanks MikeS!) and Mac dynamic libraries
- Remove Win32 dynamic libraries
- Enable ShaderCompileWorker as an arm64 native target for UAT
- Bump ASTC and ISP_ASTC version numbers (for DDC)

#rb josh.adams, chris.babcock
#fyi charles.bloom, jeff.newquist
#jira UE-145047, UE-145025, UE-150669, UE-154182
#rnx
#preflight 629a0abe2230bd91403f0f02

[CL 20487296 by will damon in ue5-main branch]
2022-06-03 11:39:35 -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