You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/GradientSignal/Code/Source/Editor
Mike Balfour d9ba0af645
SurfacePoint data structure encapsulations (#7413)
* First pass at encapsulating SurfacePointList.
The biggest challenge in optimizing SurfacePointList(s) usage is the overall memory management associated with it. There are M surface points with N surface mask entries created for every input point, which leads to a lot of container reallocation and memory shuffling when processing multiple input points. By encapsulating the list, it should become easier to preallocate the entries, as well as keep "helper data" around for managing the bookkeeping to associate the input points with the output points.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Small fixes and TODO reminders.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Encapsulate surface point creation and separate EnumeratePoints out from modifications.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Start removing SurfacePoint from the exposed API.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Changed SurfacePointList to split out the surface point storage to allow for span<> usage over time.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Removed entity id

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Removed SurfacePoint from SurfaceData, changed all remaining uses to AzFramework::SurfaceData::SurfacePoint.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Encapsulated SurfaceTagWeightMap and renamed to SurfaceTagWeights.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Fixed make file.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Better commenting and parameter naming.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Renamed methods to be more descriptive.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
4 years ago
..
EditorConstantGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorConstantGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorDitherGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorDitherGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorGradientSurfaceDataComponent.cpp SurfacePoint data structure encapsulations (#7413) 4 years ago
EditorGradientSurfaceDataComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorGradientTransformComponent.cpp Change gradients to use cached GradientTransform instance (#6591) 4 years ago
EditorGradientTransformComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorImageBuilderComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorImageBuilderComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorImageGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorImageGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorImageProcessingSystemComponent.cpp Gems/GradientSignal 4 years ago
EditorImageProcessingSystemComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorInvertGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorInvertGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorLevelsGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorLevelsGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorMixedGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorMixedGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorPerlinGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorPerlinGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorPosterizeGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorPosterizeGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorRandomGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorRandomGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorReferenceGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorReferenceGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorShapeAreaFalloffGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorShapeAreaFalloffGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorSmoothStepGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorSmoothStepGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorSurfaceAltitudeGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorSurfaceAltitudeGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorSurfaceMaskGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorSurfaceMaskGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorSurfaceSlopeGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorSurfaceSlopeGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago
EditorThresholdGradientComponent.cpp Merge branch 'development' into cmake/SPEC-7179 4 years ago
EditorThresholdGradientComponent.h Moved GradientSignal component headers to Include directory. 4 years ago