refactor(srp): rename camera request context surface

This commit is contained in:
2026-04-19 15:20:34 +08:00
parent 8edc68f02b
commit 237a628e2a
14 changed files with 114 additions and 114 deletions

View File

@@ -0,0 +1,30 @@
using XCEngine;
using XCEngine.Rendering;
namespace XCEngine.Rendering.Universal
{
public static class CameraRenderRequestContextExtensions
{
public static bool HasDirectionalShadow(
this CameraRenderRequestContext context)
{
return context != null &&
InternalCalls
.Rendering_CameraRenderRequestContext_GetHasDirectionalShadow(
context.nativeHandle);
}
public static void ClearDirectionalShadow(
this CameraRenderRequestContext context)
{
if (context == null)
{
return;
}
InternalCalls
.Rendering_CameraRenderRequestContext_ClearDirectionalShadow(
context.nativeHandle);
}
}
}