refactor(srp): replace native scene feature strings with ids

This commit is contained in:
2026-04-21 22:52:08 +08:00
parent d75bd95e89
commit f1d7e879ac
18 changed files with 161 additions and 33 deletions

View File

@@ -70,14 +70,14 @@ namespace XCEngine.Rendering
}
public bool RecordNativeSceneFeaturePass(
string featurePassName)
NativeSceneFeaturePassId featurePassId)
{
return !string.IsNullOrEmpty(
featurePassName) &&
return featurePassId !=
NativeSceneFeaturePassId.Invalid &&
InternalCalls
.Rendering_ScriptableRenderContext_RecordNativeSceneFeaturePass(
m_nativeHandle,
featurePassName);
(int)featurePassId);
}
public bool DrawRenderers(