diff --git a/src/ComputeSharp.Graphics/Buffers/Enums/BufferType.cs b/src/ComputeSharp.Graphics/Buffers/Enums/BufferType.cs new file mode 100644 index 00000000..44c282d7 --- /dev/null +++ b/src/ComputeSharp.Graphics/Buffers/Enums/BufferType.cs @@ -0,0 +1,33 @@ +namespace ComputeSharp.Graphics.Buffers.Enums +{ + /// + /// An that indicates the type of a given HLSL buffer + /// + internal enum BufferType + { + /// + /// A constant buffer, with items aligned to 16 bytes, used for individual values or very small arrays, mapped to + /// + Constant, + + /// + /// A readonly buffer, that can store arbitrary arrays of values, mapped to + /// + ReadOnly, + + /// + /// A read write buffer, that can store arbitrary arrays with both read and write access, mapped to + /// + ReadWrite, + + /// + /// A readback buffer, used as temporary buffer to read data back from read write buffers, mapped to + /// + ReadBack, + + /// + /// A transfer buffer, used as a temporary buffer to set data to buffers in the default heap, mapped to + /// + Transfer + } +}