19 lines
646 B
C#
19 lines
646 B
C#
using UnityEngine.Experimental.Rendering;
|
|
|
|
namespace UnityEngine.Rendering.HighDefinition
|
|
{
|
|
class RenderPipelineMaterial : Object
|
|
{
|
|
// GBuffer management
|
|
public virtual bool IsDefferedMaterial() { return false; }
|
|
|
|
// Regular interface
|
|
public virtual void Build(HDRenderPipelineAsset hdAsset, RenderPipelineResources defaultResources) {}
|
|
public virtual void Cleanup() {}
|
|
|
|
// Following function can be use to initialize GPU resource (once or each frame) and bind them
|
|
public virtual void RenderInit(CommandBuffer cmd) {}
|
|
public virtual void Bind(CommandBuffer cmd) {}
|
|
}
|
|
}
|