27 行
1.1 KiB
C#
27 行
1.1 KiB
C#
using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
|
|
|
|
namespace ComputeSharp.Shaders.Renderer.Models.Fields
|
|
{
|
|
/// <summary>
|
|
/// A <see langword="class"/> that contains info on a read write buffer field.
|
|
/// </summary>
|
|
internal sealed class ReadWriteBufferFieldInfo : HlslBufferInfo
|
|
{
|
|
/// <summary>
|
|
/// Creates a new <see cref="ReadWriteBufferFieldInfo"/> instance with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="fieldHlslType">The type of the current field in the HLSL shader.</param>
|
|
/// <param name="fieldName">The name of the current field.</param>
|
|
/// <param name="bufferIndex">The index of the current read write buffer field.</param>
|
|
public ReadWriteBufferFieldInfo(string fieldHlslType, string fieldName, int bufferIndex)
|
|
: base(fieldHlslType, fieldName, bufferIndex)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets whether or not the current <see cref="CapturedFieldInfo"/> instance represents a read write buffer (always <see langword="true"/>).
|
|
/// </summary>
|
|
public bool IsReadWriteBuffer { get; } = true;
|
|
}
|
|
}
|