#pragma warning disable CS1572, CS1573 namespace ComputeSharp.Shaders.Renderer.Models { /// /// A model that contains info on a shader typed resource field. /// /// The type of the current field in the HLSL shader. /// The name to use for the current field. /// The register index to bind the resource to. internal abstract record HlslResourceInfo(string FieldType, string FieldName, int BufferIndex) : CapturedFieldInfo(FieldType, FieldName) { /// /// A model that represents a captured constant buffer in a shader. /// /// public sealed record Constant(string FieldType, string FieldName, int BufferIndex) : HlslResourceInfo(FieldType, FieldName, BufferIndex); /// /// A model that represents a captured readonly typed resource in a shader. /// Maps to either or . /// /// public sealed record ReadOnly(string FieldType, string FieldName, int BufferIndex) : HlslResourceInfo(FieldType, FieldName, BufferIndex); /// /// A model that represents a captured writeable buffer in a shader. /// Maps to either or . /// /// public sealed record ReadWrite(string FieldType, string FieldName, int BufferIndex) : HlslResourceInfo(FieldType, FieldName, BufferIndex); } }