Files
XCEngine/managed/XCEngine.ScriptCore/ScriptableRenderContext.cs

55 lines
1.5 KiB
C#
Raw Normal View History

namespace XCEngine
{
public sealed class ScriptableRenderContext
{
private readonly ulong m_nativeHandle;
internal ScriptableRenderContext(ulong nativeHandle)
{
m_nativeHandle = nativeHandle;
}
public CameraFrameStage stage =>
(CameraFrameStage)InternalCalls.Rendering_ScriptableRenderContext_GetStage(
m_nativeHandle);
public bool RecordScene()
{
return InternalCalls
.Rendering_ScriptableRenderContext_RecordScene(
m_nativeHandle);
}
public bool RenderScene()
{
return RecordScene();
}
public bool RecordScenePhase(ScenePhase scenePhase)
{
return InternalCalls
.Rendering_ScriptableRenderContext_RecordScenePhase(
m_nativeHandle,
(int)scenePhase);
}
public bool RecordSceneInjectionPoint(
SceneRenderInjectionPoint injectionPoint)
{
return InternalCalls
.Rendering_ScriptableRenderContext_RecordSceneInjectionPoint(
m_nativeHandle,
(int)injectionPoint);
}
public bool RecordColorScaleFullscreenPass(
Vector4 colorScale)
{
return InternalCalls
.Rendering_ScriptableRenderContext_RecordColorScaleFullscreenPass(
m_nativeHandle,
ref colorScale);
}
}
}