您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
1.1 KiB
29 行
1.1 KiB
using System.Collections.Generic;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEngine.Experimental.Rendering.LightweightPipeline
|
|
{
|
|
public abstract class ScriptableRenderPass
|
|
{
|
|
public ScriptableRenderPass(RenderTextureFormat[] inputColorAttachments, RenderTextureFormat inputDepthAttachment)
|
|
{
|
|
colorAttachments = inputColorAttachments;
|
|
depthAttachment = inputDepthAttachment;
|
|
}
|
|
|
|
public abstract void BindSurface(CommandBuffer cmd, RenderTextureDescriptor attachmentDescriptor, int samples);
|
|
|
|
public abstract void Execute(ScriptableRenderContext context, Camera camera, ref CullResults cullResults, bool stereoRendering);
|
|
|
|
public abstract void Dispose(CommandBuffer cmd);
|
|
|
|
public RenderTextureFormat[] colorAttachments { get; set; }
|
|
public RenderTextureFormat depthAttachment { get; set; }
|
|
protected List<ShaderPassName> m_ShaderPassNames = new List<ShaderPassName>();
|
|
|
|
public void RegisterShaderPassName(string passName)
|
|
{
|
|
m_ShaderPassNames.Add(new ShaderPassName(passName));
|
|
}
|
|
}
|
|
}
|