You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
795 B
25 lines
795 B
namespace StabilityMatrix.Core.Models.Api.Comfy; |
|
|
|
/// <summary> |
|
/// Pair of <see cref="ComfySampler"/> and <see cref="ComfyScheduler"/> |
|
/// </summary> |
|
public readonly record struct ComfySamplerScheduler(ComfySampler Sampler, ComfyScheduler Scheduler) |
|
{ |
|
/// <inheritdoc /> |
|
public bool Equals(ComfySamplerScheduler other) |
|
{ |
|
return Sampler.Equals(other.Sampler) && Scheduler.Equals(other.Scheduler); |
|
} |
|
|
|
/// <inheritdoc /> |
|
public override int GetHashCode() |
|
{ |
|
return HashCode.Combine(Sampler, Scheduler); |
|
} |
|
|
|
// Implicit conversion from (ComfySampler, ComfyScheduler) |
|
public static implicit operator ComfySamplerScheduler((ComfySampler, ComfyScheduler) tuple) |
|
{ |
|
return new ComfySamplerScheduler(tuple.Item1, tuple.Item2); |
|
} |
|
}
|
|
|