示例#1
0
        public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
        {
            CommandBuffer cmdBuf = new CommandBuffer {
                name = drawCommand.name
            };                                                                                // this feels a lil wasteful

            drawCommand.AppendToBuffer(cmdBuf);
            context.ExecuteCommandBuffer(cmdBuf);
            cmdBuf.Release();
        }
 public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
 {
     drawCommand.AppendToBuffer(cmdBuf);
     context.ExecuteCommandBuffer(cmdBuf);
     cmdBuf.Clear();
 }