diff --git a/ComputeGuard/ComputeDecision.cs b/ComputeGuard/ComputeDecision.cs new file mode 100644 index 0000000..19af286 --- /dev/null +++ b/ComputeGuard/ComputeDecision.cs @@ -0,0 +1,18 @@ +namespace ComputeGuard; + +internal enum ComputeRoute +{ + Cpu, + Gpu, +} + +internal enum ComputeRouteReason +{ + Trusted, + NoDevice, + Pinned, + SoftwareAdapter, + MemoryLimit, +} + +internal readonly record struct ComputeDecision(ComputeRoute Route, ComputeRouteReason Reason); diff --git a/ComputeGuard/ComputeWorkload.cs b/ComputeGuard/ComputeWorkload.cs new file mode 100644 index 0000000..cf6426e --- /dev/null +++ b/ComputeGuard/ComputeWorkload.cs @@ -0,0 +1,3 @@ +namespace ComputeGuard; + +internal readonly record struct ComputeWorkload(int Width, int Height, long GpuMemoryBytes, ulong SamplingKey);