forked from Nominom/BCnEncoder.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEncoderOptions.cs
More file actions
29 lines (26 loc) · 892 Bytes
/
Copy pathEncoderOptions.cs
File metadata and controls
29 lines (26 loc) · 892 Bytes
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
using System;
using BCnEncoder.Shared;
namespace BCnEncoder.Encoder.Options
{
/// <summary>
/// General options for the encoder.
/// </summary>
public class EncoderOptions
{
/// <summary>
/// Whether the blocks should be encoded in parallel. This can be much faster than single-threaded encoding,
/// but is slow if multiple textures are being processed at the same time.
/// When a debugger is attached, the encoder defaults to single-threaded operation to ease debugging.
/// Default is true.
/// </summary>
public bool IsParallel { get; set; } = true;
/// <summary>
/// Determines how many tasks should be used for parallel processing.
/// </summary>
public int TaskCount { get; set; } = Environment.ProcessorCount;
/// <summary>
/// The progress context for the operation.
/// </summary>
public IProgress<ProgressElement> Progress { get; set; }
}
}