public ShaderResourceDescription(string name, ShaderConstantType constantType, ShaderStages stages = ShaderStages.All)
        {
            Name = name;
            Type = ShaderResourceType.ConstantBuffer;
            if (!FormatHelpers.GetShaderConstantTypeByteSize(constantType, out int dataSizeInBytes))
            {
                throw new VeldridException("Invalid shader constant type: " + constantType);
            }

            DataSizeInBytes = dataSizeInBytes;
            Stages          = stages;
        }