add CUSTOM residency type (#417)

* add CUSTOM residency type

* revert settings
This commit is contained in:
hyde zhou
2026-11-16 12:08:06 +08:00
committed by GitHub
parent 8e62e7e044
commit aaa3a9168b
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -58,6 +58,7 @@ export enum ResourceResidency {
PERSISTENT,
EXTERNAL,
BACKBUFFER,
CUSTOM,
}
export enum QueueHint {
@@ -28,13 +28,15 @@
* ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
*/
// NOLINTBEGIN(misc-include-cleaner)
#include "cocos/renderer/pipeline/custom/LayoutGraphSerialization.h"
// clang-format off
#include "cocos/renderer/pipeline/custom/ArchiveTypes.h"
#include "cocos/renderer/pipeline/custom/LayoutGraphGraphs.h"
#include "cocos/renderer/pipeline/custom/LayoutGraphSerialization.h"
#include "cocos/renderer/pipeline/custom/LayoutGraphTypes.h"
#include "cocos/renderer/pipeline/custom/RenderCommonSerialization.h"
#include "cocos/renderer/pipeline/custom/details/Range.h"
#include "cocos/renderer/pipeline/custom/details/SerializationUtils.h"
// clang-format on
namespace cc {
@@ -71,6 +71,7 @@ inline const char* getName(ResourceResidency e) noexcept {
case ResourceResidency::PERSISTENT: return "PERSISTENT";
case ResourceResidency::EXTERNAL: return "EXTERNAL";
case ResourceResidency::BACKBUFFER: return "BACKBUFFER";
case ResourceResidency::CUSTOM: return "CUSTOM";
}
return "";
}
@@ -28,10 +28,12 @@
* ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
*/
// NOLINTBEGIN(misc-include-cleaner)
#include "cocos/renderer/pipeline/custom/RenderCommonSerialization.h"
// clang-format off
#include "cocos/renderer/pipeline/custom/ArchiveTypes.h"
#include "cocos/renderer/pipeline/custom/RenderCommonSerialization.h"
#include "cocos/renderer/pipeline/custom/RenderCommonTypes.h"
#include "cocos/renderer/pipeline/custom/details/SerializationUtils.h"
// clang-format on
namespace cc {
@@ -83,6 +83,7 @@ enum class ResourceResidency : uint8_t {
PERSISTENT,
EXTERNAL,
BACKBUFFER,
CUSTOM,
};
enum class QueueHint : uint8_t {