Open 3D Engine Atom Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <ImageProperty.h>
Classes | |
struct | PropertyRange |
Describes the property value of one image subresource range. More... | |
Public Member Functions | |
void | Init (const ImageDescriptor &descriptor) |
Initialize the ImageProperty with the descriptor of the image. | |
bool | IsInitialized () const |
Returns if has been initialized. | |
void | Set (const ImageSubresourceRange &range, const T &property) |
Sets a new property value for an image subresource range. | |
AZStd::vector< PropertyRange > | Get (const ImageSubresourceRange &range) const |
void | Reset () |
Removes all property values that were previously set. | |
Utility class to track a property value of the subresources of an image. This class will keep track of the values that each subresource has and will merge continuous ranges that have the same property value. This is compatible with the way graphic APIs handle image properties. One possible use could be to keep track of layout states of an image to properly add barriers between image state transitions.
AZStd::vector< typename ImageProperty< T >::PropertyRange > AZ::RHI::ImageProperty< T >::Get | ( | const ImageSubresourceRange & | range | ) | const |
Returns a list with all the property values over an image subresource range. Continuous ranges that have the same property will be group together.