Enabled loading/dispatch with texture resources

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-03 18:47:36 +01:00
1 親 ca16a746b9
コミット 71e5c80d84
12ファイル変更
+69 -48

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -231,7 +231,7 @@ namespace ComputeSharp
public static ReadOnlyTexture2D<T> AllocateReadOnlyTexture2D<T>(this GraphicsDevice device, T[] array, int width, int height)
where T : unmanaged
{
return device.AllocateReadOnlyTexture2D(array, width, height);
return device.AllocateReadOnlyTexture2D<T>(array.AsSpan(), width, height);
}
/// <summary>
@@ -317,7 +317,7 @@ namespace ComputeSharp
public static ReadWriteTexture2D<T> AllocateReadWriteTexture2D<T>(this GraphicsDevice device, T[] array, int width, int height)
where T : unmanaged
{
return device.AllocateReadWriteTexture2D(array, width, height);
return device.AllocateReadWriteTexture2D<T>(array.AsSpan(), width, height);
}
/// <summary>