From a8647932e2c0689112d71bf2b92bf5d19c1f4c3b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 15 Aug 2019 14:09:17 +0200 Subject: [PATCH] Added BufferType enum --- .../Buffers/Enums/BufferType.cs | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/ComputeSharp.Graphics/Buffers/Enums/BufferType.cs 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 + } +}