public unsafe void ImportData(IMTLCommandBuffer cmdBuf, IMTLBuffer buffer, MPSDataType sourceDataType, nuint offset, nint[] rowStrides) { fixed(nint *p = rowStrides) { ImportData(cmdBuf, buffer, sourceDataType, offset, (IntPtr)p); } }
public static nuint GetRowBytes(nuint columns, MPSDataType dataType) { return(GetRowBytesFromColumns(columns, dataType)); }
public static int GetByteSize(this MPSDataType dataType) => dataType switch {
public static MPSVectorDescriptor VectorDescriptor(int length, MPSDataType dataType = MPSDataType.Float32) => MPSVectorDescriptor.Create((nuint)length, dataType);
public void ExportData(IMTLCommandBuffer cmdBuf, IMTLBuffer buffer, MPSDataType sourceDataType, nuint offset) { ExportData(cmdBuf, buffer, sourceDataType, offset, IntPtr.Zero); }