refactor(srp): move universal shadow ownership into asset layer

- track missing render graph scriptcore sources and rendering utility headers

- expose camera request directional shadow control to managed universal asset configuration
This commit is contained in:
2026-04-21 02:03:27 +08:00
parent 4d587c5d0b
commit 5747968fc4
14 changed files with 1215 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
namespace XCEngine.Rendering
{
public struct RenderGraphTextureHandle
{
private readonly int m_indexPlusOne;
private RenderGraphTextureHandle(
int indexPlusOne)
{
m_indexPlusOne = indexPlusOne;
}
public bool isValid =>
m_indexPlusOne > 0;
internal int nativeIndex =>
m_indexPlusOne > 0
? m_indexPlusOne - 1
: -1;
internal static RenderGraphTextureHandle
FromNativeIndex(int nativeIndex)
{
return nativeIndex >= 0
? new RenderGraphTextureHandle(
nativeIndex + 1)
: default;
}
}
}