diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs
index 471f2667..4060b7f4 100644
--- a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs
+++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs
@@ -27,6 +27,7 @@ namespace ComputeSharp.Shaders.Mappings
[typeof(Vector4).FullName] = "float4",
[typeof(Matrix4x4).FullName] = "float4x4",
[typeof(ThreadIds).FullName] = "uint3",
+ [typeof(ReadOnlyBuffer<>).FullName] = "StructuredBuffer",
[typeof(ReadWriteBuffer<>).FullName] = "RWStructuredBuffer"
};
@@ -53,15 +54,6 @@ namespace ComputeSharp.Shaders.Mappings
type == typeof(Vector4) ||
type == typeof(Matrix4x4);
- ///
- /// Checks whether or not the input type is a value
- ///
- /// The input instance to check
- /// A indicating whether the input is in fact a instance
- [Pure]
- public static bool IsReadWriteBufferType(Type type) => type.IsGenericType &&
- type.GetGenericTypeDefinition() == typeof(ReadWriteBuffer<>);
-
///
/// Checks whether or not the input type is a value
///
@@ -71,6 +63,24 @@ namespace ComputeSharp.Shaders.Mappings
public static bool IsConstantBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(ConstantBuffer<>);
+ ///
+ /// Checks whether or not the input type is a value
+ ///
+ /// The input instance to check
+ /// A indicating whether the input is in fact a instance
+ [Pure]
+ public static bool IsReaadOnlyBufferType(Type type) => type.IsGenericType &&
+ type.GetGenericTypeDefinition() == typeof(ReadOnlyBuffer<>);
+
+ ///
+ /// Checks whether or not the input type is a value
+ ///
+ /// The input instance to check
+ /// A indicating whether the input is in fact a instance
+ [Pure]
+ public static bool IsReadWriteBufferType(Type type) => type.IsGenericType &&
+ type.GetGenericTypeDefinition() == typeof(ReadWriteBuffer<>);
+
///
/// Checks whether or not a given is an HLSL known type
///