#if NET6_0_OR_GREATER
using System.Runtime.CompilerServices;
#else
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
#endif
namespace ComputeSharp;
///
/// A helper class with shared undefined data for all HLSL primitive types.
/// This reduces allocations and minimizes reflection metadata kept per type.
///
internal static class UndefinedData
{
///
/// The shared memory with undefined data (has size of , as it's the maximum needed at once).
///
public static readonly unsafe void* Memory = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
}