#include <ResourcePoolAssetCreator.h>
Inherits AZ::RPI::AssetCreator< ResourcePoolAsset >.
|
void | Begin (const Data::AssetId &assetId) |
|
void | SetPoolDescriptor (AZStd::unique_ptr< RHI::ResourcePoolDescriptor > poolDescriptor) |
|
void | SetPoolName (AZStd::string_view poolName) |
|
bool | End (Data::Asset< ResourcePoolAsset > &result) |
|
void | SetElevateWarnings (bool elevated) |
| When true, treat all subsequent warnings as errors. Any warnings already reported will not be elevated.
|
|
bool | GetElevateWarnings () const |
|
int | GetErrorCount () const |
|
int | GetWarningCount () const |
|
bool | IsFailed () const |
|
void | ReportError (const char *format, Args... args) |
|
void | ReportWarning (const char *format, Args... args) |
|
Use a ResourcePoolAssetCreator to create and configure a new ResourcePoolAsset which can either be BufferPoolAsset or ImagePoolAsset. (Note this class generally follows the builder design pattern, but is called a "creator" rather than a "builder" to avoid confusion with the AssetBuilderSDK).
◆ Begin()
void AZ::RPI::ResourcePoolAssetCreator::Begin |
( |
const Data::AssetId & |
assetId | ) |
|
Begins construction of a new ResourcePoolAsset. Resets the builder to a fresh state.
- Parameters
-
assetId | the unique id to use when creating the asset. |
◆ End()
Finalizes and assigns ownership of the asset to result, if successful. Otherwise false is returned and result is left untouched.
◆ SetPoolDescriptor()
Set a pool descriptor which can be BufferPoolDescriptor or ImagePoolDescriptor
- Parameters
-
poolDescriptor | the unique ptr provides pool descriptor. Example: when assigning a derived pool descriptor, the code will look like ResourcePoolAssetCreator assetCreator; ... AZStd::unique_ptr<RHI::BufferPoolDescriptor> bufferPoolDescriptor = AZStd::make_unique<RHI::BufferPoolDescriptor>(); ... assetCreator.SetPoolDescriptor(AZStd::move(bufferPoolDescriptor)); |
The documentation for this class was generated from the following file:
- Gems/Atom/RPI/Code/Include/Atom/RPI.Reflect/ResourcePoolAssetCreator.h