Add URP render pass API parity shims

This commit is contained in:
2026-04-25 15:34:19 +08:00
parent ba4a778886
commit c0c0bbdfa3
9 changed files with 419 additions and 42 deletions

View File

@@ -0,0 +1,18 @@
namespace XCEngine.Rendering
{
public sealed class CommandBuffer
{
public CommandBuffer()
: this(string.Empty)
{
}
public CommandBuffer(
string name)
{
this.name = name ?? string.Empty;
}
public string name { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
namespace XCEngine.Rendering
{
public sealed class ProfilingSampler
{
public ProfilingSampler(
string name)
{
this.name =
string.IsNullOrEmpty(name)
? "Unnamed_ScriptableRenderPass"
: name;
}
public string name { get; private set; }
public override string ToString()
{
return name;
}
}
}