-
Notifications
You must be signed in to change notification settings - Fork 872
Expand file tree
/
Copy pathIRenderPipelineConverter.cs
More file actions
51 lines (45 loc) · 1.73 KB
/
IRenderPipelineConverter.cs
File metadata and controls
51 lines (45 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Collections.Generic;
using System;
namespace UnityEditor.Rendering.Converter
{
/// <summary>
/// Represents a converter that processes render pipeline conversion items.
/// </summary>
interface IRenderPipelineConverter
{
/// <summary>
/// Gets a value indicating whether the converter is enabled and can be used.
/// </summary>
bool isEnabled { get; set; }
/// <summary>
/// Gets or sets the reason message shown when the converter item is disabled.
/// </summary>
string isDisabledMessage { get; set; }
/// <summary>
/// Scans for available render pipeline converter items.
/// </summary>
/// <param name="onScanFinish">
/// A callback invoked when the scan is complete, providing the list of converter items.
/// </param>
void Scan(Action<List<IRenderPipelineConverterItem>> onScanFinish);
/// <summary>
/// Called before the conversion process begins.
/// </summary>
void BeforeConvert() { }
/// <summary>
/// Performs the conversion on a given converter item.
/// </summary>
/// <param name="item">The converter item to be processed.</param>
/// <param name="message">
/// An output message providing additional details about the conversion result.
/// </param>
/// <returns>
/// A <see cref="Status"/> value representing the outcome of the conversion.
/// </returns>
Status Convert(IRenderPipelineConverterItem item, out string message);
/// <summary>
/// Called after the conversion process is completed.
/// </summary>
void AfterConvert() { }
}
}