Align managed render graph authoring surface
This commit is contained in:
@@ -31,6 +31,48 @@ namespace XCEngine.Rendering.RenderGraphModule
|
||||
return m_context.AddRasterPass(passName);
|
||||
}
|
||||
|
||||
public XCEngine.Rendering.RenderGraphTextureHandle
|
||||
CreateTransientTexture(
|
||||
string name,
|
||||
XCEngine.Rendering.RenderGraphTextureDesc desc)
|
||||
{
|
||||
if (m_context == null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"RenderGraph is not bound to a recording context.");
|
||||
}
|
||||
|
||||
return m_context.CreateTransientTexture(
|
||||
name,
|
||||
desc);
|
||||
}
|
||||
|
||||
public XCEngine.Rendering.RenderGraphTextureHandle
|
||||
CreateFullscreenTransientColorTexture(
|
||||
string name)
|
||||
{
|
||||
if (m_context == null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"RenderGraph is not bound to a recording context.");
|
||||
}
|
||||
|
||||
return m_context.CreateFullscreenTransientColorTexture(name);
|
||||
}
|
||||
|
||||
public XCEngine.Rendering.RenderGraphTextureHandle
|
||||
CreateFullscreenTransientDepthTexture(
|
||||
string name)
|
||||
{
|
||||
if (m_context == null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"RenderGraph is not bound to a recording context.");
|
||||
}
|
||||
|
||||
return m_context.CreateFullscreenTransientDepthTexture(name);
|
||||
}
|
||||
|
||||
public XCEngine.Rendering.RendererListHandle
|
||||
CreateRendererList(
|
||||
XCEngine.Rendering.RendererListDesc rendererListDesc)
|
||||
|
||||
Reference in New Issue
Block a user