Bridge managed render funcs to command buffers

This commit is contained in:
2026-04-27 16:11:54 +08:00
parent 2e6643b4d1
commit 048ca7b362
10 changed files with 697 additions and 27 deletions

View File

@@ -549,7 +549,8 @@ namespace XCEngine
internal static extern bool
Rendering_ScriptableRenderContext_SetRasterPassManagedRenderFuncExecution(
ulong nativeHandle,
ulong rasterPassHandle);
ulong rasterPassHandle,
Action<Rendering.RenderGraphRasterContext> renderFunc);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
@@ -557,6 +558,12 @@ namespace XCEngine
ulong nativeHandle,
ulong rasterPassHandle);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
Rendering_CommandBuffer_ClearRenderTarget(
ulong nativeHandle,
ref Color color);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern int
Rendering_ScriptableRenderPipelinePlanningContext_GetRendererIndex(