Renamed Buffer2<T> type

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 13:37:58 +02:00
1 親 d75e84c618
コミット acf2aa9fce
5ファイル変更
+23 -23

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

+4 -4
ファイルの表示
@@ -27,7 +27,7 @@ namespace ComputeSharp.Shaders.Mappings
[typeof(Vector4).FullName] = "float4",
[typeof(Matrix4x4).FullName] = "float4x4",
[typeof(ThreadIds).FullName] = "uint3",
[typeof(Buffer2<>).FullName] = "RWBuffer"
[typeof(Buffer<>).FullName] = "RWBuffer"
};
/// <summary>
@@ -54,13 +54,13 @@ namespace ComputeSharp.Shaders.Mappings
type == typeof(Matrix4x4);
/// <summary>
/// Checks whether or not the input type is a <see cref="Buffer2{T}"/> value
/// Checks whether or not the input type is a <see cref="Buffer{T}"/> value
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="Buffer2{T}"/> instance</returns>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="Buffer{T}"/> instance</returns>
[Pure]
public static bool IsBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(Buffer2<>);
type.GetGenericTypeDefinition() == typeof(Buffer<>);
/// <summary>
/// Checks whether or not a given <see cref="Type"/> is an HLSL known type
+1 -1
ファイルの表示
@@ -117,7 +117,7 @@ namespace ComputeSharp.Shaders
// Read write buffer
if (HlslKnownTypes.IsBufferType(fieldType) &&
(HeapType)fieldType.GetProperty(nameof(Buffer2<byte>.HeapType)).GetValue(fieldValue) == HeapType.Default)
(HeapType)fieldType.GetProperty(nameof(Buffer<byte>.HeapType)).GetValue(fieldValue) == HeapType.Default)
{
// Root parameter for a read write buffer
DescriptorRange range = new DescriptorRange(DescriptorRangeType.UnorderedAccessView, 1, readWriteBuffersCount);