using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Numerics;
using System.Runtime.CompilerServices;
using ComputeSharp.Graphics.Buffers.Abstract;
namespace ComputeSharp.Graphics.Buffers.Extensions
{
///
/// A with extension methods for the type to allocate generic resources
///
internal static class GraphicsResourceExtensions
{
///
/// Allocates a new constant buffer with the specified generic values
///
/// The instance to use to allocate the buffer
/// The input sequence to copy to the allocated buffer
/// A constant instance (as a ) with the input data
[Pure]
public static GraphicsResource AllocateConstantBufferFromReflectedValues(this GraphicsDevice device, IReadOnlyList