Minor bug fixes

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 11:13:00 +02:00
1 親 0896d368e4
コミット bc593c655d
2ファイル変更
+6 -4

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

+2 -2
ファイルの表示
@@ -35,12 +35,12 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
/// <summary>
/// Gets the <see cref="CpuDescriptorHandle"/> instance for the current resource
/// </summary>
protected internal CpuDescriptorHandle NativeCpuDescriptorHandle { get; protected set; }
protected internal CpuDescriptorHandle? NativeCpuDescriptorHandle { get; protected set; }
/// <summary>
/// Gets the <see cref="GpuDescriptorHandle"/> instance for the current resource
/// </summary>
protected internal GpuDescriptorHandle NativeGpuDescriptorHandle { get; protected set; }
protected internal GpuDescriptorHandle? NativeGpuDescriptorHandle { get; protected set; }
/// <summary>
/// Maps the current resource to a specified subresource
+4 -2
ファイルの表示
@@ -110,7 +110,8 @@ namespace ComputeSharp.Graphics
public void SetGraphicsRootDescriptorTable(int rootParameterIndex, GraphicsResource resource)
{
SetGraphicsRootDescriptorTable(rootParameterIndex, resource.NativeGpuDescriptorHandle);
if (resource.NativeGpuDescriptorHandle == null) throw new InvalidOperationException("Invalid graphics resource GPU descriptor");
SetGraphicsRootDescriptorTable(rootParameterIndex, resource.NativeGpuDescriptorHandle.Value);
}
public void SetGraphicsRootDescriptorTable(int rootParameterIndex, GpuDescriptorHandle baseDescriptor)
@@ -130,7 +131,8 @@ namespace ComputeSharp.Graphics
public void SetComputeRootDescriptorTable(int rootParameterIndex, GraphicsResource resource)
{
SetComputeRootDescriptorTable(rootParameterIndex, resource.NativeGpuDescriptorHandle);
if (resource.NativeGpuDescriptorHandle == null) throw new InvalidOperationException("Invalid graphics resource GPU descriptor");
SetComputeRootDescriptorTable(rootParameterIndex, resource.NativeGpuDescriptorHandle.Value);
}
public void SetComputeRootDescriptorTable(int rootParameterIndex, GpuDescriptorHandle baseDescriptor)