diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index bfb9e5cd..ff2dfd47 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -99,6 +99,10 @@ namespace ComputeSharp.Graphics ComputeUnits = d3D12Options1Data.TotalLaneCount; WavefrontSize = d3D12Options1Data.WaveLaneCountMin; + + var d3D12Architecture1Data = d3D12Device.Get()->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE1); + + IsCacheCoherentUMA = d3D12Architecture1Data.CacheCoherentUMA != 0; } /// @@ -142,6 +146,11 @@ namespace ComputeSharp.Graphics /// internal ID3D12Device* D3D12Device => this.d3D12Device; + /// + /// Gets whether or not the current device has a cache coherent UMA architecture. + /// + internal bool IsCacheCoherentUMA { get; } + /// /// Checks whether the current device supports the creation of /// resources for a specified type .