forked from Nominom/BCnEncoder.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecoderOptions.cs
More file actions
30 lines (27 loc) · 994 Bytes
/
Copy pathDecoderOptions.cs
File metadata and controls
30 lines (27 loc) · 994 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
30
using System;
using BCnEncoder.Shared;
namespace BCnEncoder.Decoder.Options
{
/// <summary>
/// General options for the decoder.
/// </summary>
public class DecoderOptions
{
/// <summary>
/// Whether the blocks should be decoded in parallel. This can be much faster than single-threaded decoding,
/// but is slow if multiple textures are being processed at the same time.
/// When a debugger is attached, the decoder defaults to single-threaded operation to ease debugging.
/// Default is false.
/// </summary>
/// <remarks>Parallel execution will be ignored in RawDecoders, due to minimal performance gain.</remarks>
public bool IsParallel { get; set; }
/// <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; }
}
}