Commit Graph

759 Commits

Author SHA1 Message Date
Jimmy Andrews
99fc3c8f80 Make TVector2 return bool to match TVector
#rb rinat.abdrashitov
#preflight 62a77dc8d80693a653f33723

[CL 20651770 by Jimmy Andrews in ue5-main branch]
2022-06-14 12:45:50 -04:00
steve robb
28609e6f3c Removal of TEXT used in static_asserts (redundant in ANSI/wide modes, broken in UTF-8 mode).
#rb james.hopkin
#jira UE-132142
#preflight 62a87ef40b7bda795a7dfff0

#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 20647361 via CL 20647632 via CL 20647654
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20650895 by steve robb in ue5-main branch]
2022-06-14 12:11:45 -04:00
JeanFrancois Dube
e3c08e960c Data Layer: fix old data layer assets debug color when loading.
#rb richard.malo
#preflight 629fe378f73a9b013ddf953a
#rnx

[CL 20554448 by JeanFrancois Dube in ue5-main branch]
2022-06-08 07:11:02 -04:00
Ryan Kautzman
44aa113d15 Add operator<< to FIntVector2.
#rb: Brice.Criswell
#fyi: Yizhou.Chen
#preflight 629a49a76879a2ac679780de

[CL 20489689 by Ryan Kautzman in ue5-main branch]
2022-06-03 14:05:06 -04:00
Zak Middleton
bbd839612e #ue5 - Add explicit overloads of FMath::Clamp() for all float and all double arguments because PVS static analysis resolves those incorrectly otherwise and generates false float to int warnings.
#jira UE-124808
#preflight 6299332c2e20b63f9aa3a52b
#rb Michael.Balzer

[CL 20479731 by Zak Middleton in ue5-main branch]
2022-06-02 21:04:44 -04:00
Christina TempelaarL
68e41e393c Implemented gizmo element circle and rectangle line trace methods.
#jira UE-153004, UE-153008
#rb jimmy.andrews
#preflight 62990e975143e4aacd8a8020

[CL 20474678 by Christina TempelaarL in ue5-main branch]
2022-06-02 15:44:09 -04:00
Zak Middleton
f6067e1851 #ue5 - TruncToInt(double) and similar *ToInt(double) functions now return int64 rather than int32. Fixed up existing uses of *ToInt(double) functions to use explicit *ToInt32(double) where old result type was expected to be int32.
Enabled overloads of Max() and Min() with mixed signed integral arguments (promoting to largest type). Unsigned are not allowed to implicitly mix.
Added explicit overload of Clamp(int64, int32, int32) => int64 to allow for easier upgrades, and once type truncation warnings are enabled in more modules they can be evaluated per-case.


#jira UE-124808
#preflight 6297a9b0e809e387be231e60
#rb Andy.Davidson

[CL 20456547 by Zak Middleton in ue5-main branch]
2022-06-01 14:56:52 -04:00
danny chapman
be59f97157 Add comments to Quat.h following swarm review 20258682
#rb trivial
#preflight 629787642f0869ea6adb14ef

[CL 20453896 by danny chapman in ue5-main branch]
2022-06-01 12:16:00 -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
brian karis
0d8b010e12 Nanite displaced mesh. Added uniform tessellation and displacement.
#rb graham.wihlidal
#preflight 62901dcd74630984fd6763b1

#ROBOMERGE-AUTHOR: brian.karis
#ROBOMERGE-SOURCE: CL 20400905 via CL 20400917 via CL 20400925
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20402444 by brian karis in ue5-main branch]
2022-05-27 20:42:29 -04:00
Steve Robb
4514fad516 GitHub 8898 : FIntVector: Add component-wise multiplication operator
#rb steve.robb
#jira UE-142730
#preflight 6290d8ac1f0041249bf005d5

[CL 20393041 by Steve Robb in ue5-main branch]
2022-05-27 10:16:47 -04:00
danny chapman
ff822641b7 Add support for RotationVector conversions to Quat
#rb steve.robb,josh.adams
#preflight 628b55a44b30a07309fdb9a8

[CL 20321491 by danny chapman in ue5-main branch]
2022-05-23 05:50:53 -04:00
Andrew Davidson
7a9db7f36d Add missing ISPC forward declarations
#preflight 62838df544349a6581ed449b

[CL 20241104 by Andrew Davidson in ue5-main branch]
2022-05-17 08:18:29 -04:00
Andrew Davidson
9741042a2b Reduce use of UE_DECLARE_LWC_TYPE macro to improve Intellisense.
Moved Math forward declarations from CoreFwd.h to Math/MathFwd.h
#rb steve.robb
#preflight 62837df43c1cdc59e2b07dd5

[CL 20240602 by Andrew Davidson in ue5-main branch]
2022-05-17 07:05:35 -04:00
Sebastien Lussier
64071198b6 Fixed issue with non axis aligned HLOD volumes
* Brushes or rotated volumes were including more actors than they should have
#rb jeanfrancois.dube
#jira none
#preflight 62824c41734d06577025f099

[CL 20222727 by Sebastien Lussier in ue5-main branch]
2022-05-16 09:21:37 -04:00
Matt Peters
3037abe477 TVector::BoundToBox: Change inconsistent pass-by-value to pass-by-reference.
AIGraph::UpdateClassData: Fix incorrect recursive child call: call needs to be made on the child not on the current node.
From PR #8466 submitted by LindyHopperGT.
#rb Josh.Adams
#rnx
#preflight 627bb7842d678960301025a0

[CL 20150316 by Matt Peters in ue5-main branch]
2022-05-11 17:11:38 -04:00
dmytro vovk
59a5f61067 Fixed VectorLoadURGBA16N and VectorLoadSRGBA16N on NEON and FPU
#jira UE-151249
#rb Zak.Middleton

#ushell-cherrypick of 20130528 by dmytro.vovk
#preflight 627ae02e68422389764e57c5

[CL 20131539 by dmytro vovk in ue5-main branch]
2022-05-10 18:51:29 -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
Jason Adcock
dccca1fb87 Fix Fortnite Networking Versioning between FN and UE branches
#jira UE-147571, UE-149373, UE-146854
#rb ryan.gerleve
#preflight

[CL 20053774 by Jason Adcock in ue5-main branch]
2022-05-04 20:56:28 -04:00
nick darnell
06aed28a93 Engine - Adding support for Double Range types, as well as reading doubles in metadata.
[REVIEW] [at]Matt.Kuhlenschmidt

#ROBOMERGE-AUTHOR: nick.darnell
#ROBOMERGE-SOURCE: CL 20029842 via CL 20029853 via CL 20029859
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20035025 by nick darnell in ue5-main branch]
2022-05-03 19:47:22 -04:00
Alex McAdams
e779b883dc Chaos Cloth: Implement ISPC for Bending Constraints and XPBDSpringConstraints.
In the Shirring Test (in development editor), the Bending Constraints change drops the single iteration BendingApply from 2.1ms --> 350us. For reference, Bending Springs (with ISPC) are about 150us.

For XPBDSpringConstraints, there is no way to enable XPBD from the UI, so this does not affect existing behavior, but I use XPBD for testing high res cloth, so the ISPC XPBD speedups are important there.

This also includes code for using PhysicsParallelFor (following other parallel constraint examples). This is significantly slower than ISPC on PC (similar to other cloth constraints). I don't know if this would be better on other platforms, but the default is to use ISPC (following same convention as other cloth constraints).

#preflight 6271affa2f4fb6234ec50446
#rb kriss.gossart

[CL 20034474 by Alex McAdams in ue5-main branch]
2022-05-03 19:02:20 -04:00
Zak Middleton
44e593855e #ue5 - LWC: add missing VectorClamp() for doubles, it was only defined for floats, and also not in UnrealMathFPU.
#jira none
#preflight 626c38ac9e6bef17920d445c
#rb none

[CL 19984279 by Zak Middleton in ue5-main branch]
2022-04-29 15:53:27 -04:00
Zak Middleton
bd47021f04 #ue5 - Added VectorMod360(), for specific use by Rotator normalization where speed is more important than the stability of stock fmod() under extreme ranges. 30% - 75% faster depending on the intrinsics available to the alternate VectorMod().
Given that the second argument is always 360, we can remove some tests for bad ranges of input and use simple truncation/multiplication to compute the result, while retaining good accuracy within reasonable FRotator input value ranges.

#jira UE-129730
#preflight 62699851f97c319beba69337
#rb Dmytro.Vovk

[CL 19947858 by Zak Middleton in ue5-main branch]
2022-04-27 17:44:04 -04:00
Zak Middleton
f2e6ac0f2d #ue5 - Make UnrealMathFPU usable again when vector intrinsics are disabled or when explicitly swapped in within VectorRegister.h. Fixed some related deprecated UE constants usage. Fixed NaN handling for comparisons in UnrealMathFPU to pass the UnrealMathTest startup tests.
#jira UE-129730
#rb none
#preflight 62687fe6430b9997eb013593

[CL 19941685 by Zak Middleton in ue5-main branch]
2022-04-27 12:27:40 -04:00
brandon dawson
b28bf9df71 Add cast to the specified octree type in the generic octree callback.
#preflight 6266e9859337eeaec40226e3

#ROBOMERGE-AUTHOR: brandon.dawson
#ROBOMERGE-SOURCE: CL 19937736 via CL 19937756 via CL 19937762
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19939034 by brandon dawson in ue5-main branch]
2022-04-27 10:06:36 -04:00